diff --git a/include/functions.inc b/include/functions.inc
index 5571329521d721b0832561629486907ea2a346c0..46a0e53e9ddd51036441153a199723d2d01d374f 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
function ldap_expired_account($config, $userdn, $username)
{
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();
$ldap->cat($userdn);
$attrs= $ldap->fetch();
$ar = false;
exec("lpstat -p", $ar);
foreach($ar as $val){
$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";
}
if (preg_match('/^[^@]+$/', $printer)){
$res[$printer]= "$printer";
}