diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc
index ec1d42213d0086d2d2740b5e22acc5278c92555c..ea7cbd243bf518f051c71ec96bd0e3cfde8f9f47 100644 (file)
$users= array();
// Get Configuration
- $a_SETUP = $_SESSION['config']->data['SERVERS']['FON'];
- // Connect to DB server
- $r_con = @mysql_connect($a_SETUP['SERVER'],$a_SETUP['LOGIN'],$a_SETUP['PASSWORD']);
- // Check if we are connected correctly
$r_db=false;
- if($r_con){
- $r_db = @mysql_select_db($a_SETUP['DB'],$r_con);
+ if (isset($_SESSION['config']->data['SERVERS']['FON'])){
+ $a_SETUP= $_SESSION['config']->data['SERVERS']['FON'];
+ // Connect to DB server
+ $r_con= @mysql_connect($a_SETUP['SERVER'],$a_SETUP['LOGIN'],$a_SETUP['PASSWORD']);
+ // Check if we are connected correctly
+ if($r_con){
+ $r_db = @mysql_select_db($a_SETUP['DB'],$r_con);
+ }
}
// Test Every Entry and generate divlist Array