From: cajus Date: Thu, 11 Aug 2005 20:41:51 +0000 (+0000) Subject: Fixed problem with phone accounts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4d8111c572ba4b29a6afa0e36df28ee0b02f6998;p=gosa.git Fixed problem with phone accounts Fixed layout of headpage git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1108 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index ec1d42213..ea7cbd243 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -698,13 +698,15 @@ class userManagement extends plugin $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 diff --git a/plugins/admin/users/headpage.tpl b/plugins/admin/users/headpage.tpl index 22304bac0..12ee7a617 100644 --- a/plugins/admin/users/headpage.tpl +++ b/plugins/admin/users/headpage.tpl @@ -45,8 +45,8 @@ - -
Search
+ +
{$apply}