X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions.inc;h=46a0e53e9ddd51036441153a199723d2d01d374f;hb=f3501295da4d83e02119a203229ed8e4ec7f5be8;hp=5571329521d721b0832561629486907ea2a346c0;hpb=0ab213c0302e5f76e57596a01c2f0ef753f0806d;p=gosa.git diff --git a/include/functions.inc b/include/functions.inc index 557132952..46a0e53e9 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -367,8 +367,8 @@ function ldap_login_user ($username, $password) function ldap_expired_account($config, $userdn, $username) { - $this->config= $config; - $ldap= $this->config->get_ldap_link(); + //$this->config= $config; + $ldap= $config->get_ldap_link(); $ldap->cat($userdn); $attrs= $ldap->fetch(); @@ -1194,7 +1194,7 @@ function get_printer_list($cups_server) $ar = false; exec("lpstat -p", $ar); foreach($ar as $val){ - list($dummy, $printer, $rest)= split(' ', $val, 3); + @list($dummy, $printer, $rest)= split(' ', $val, 3); if (preg_match('/^[^@]+$/', $printer)){ $res[$printer]= "$printer"; }