From: hickert Date: Fri, 12 May 2006 11:24:09 +0000 (+0000) Subject: Fixed print detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2251f972234828cc3ccaa8cb76113ae06e6edab1;p=gosa.git Fixed print detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3316 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index d2ce0167e..420295407 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -533,16 +533,16 @@ class printgeneric extends plugin /* Check if this dn points to a printer, to avoid deleting something else */ $ldap= $this->config->get_ldap_link(); - $ldap->cat($this->dn, array('dn')); + $ldap->cat($this->dn, array('dn',"objectClass")); if(!$ldap->count()){ - print_red("Trying to remove printer obejct which isn't a printer. Aborted to avoid data loss."); + print_red("Trying to remove printer object which isn't a printer. Aborted to avoid data loss."); return; } /* Check if obejct is a printer */ $CheckPrinter = $ldap->fetch(); if(!in_array("gotoPrinter",$CheckPrinter['objectClass'])){ - print_red("Trying to remove printer obejct which isn't a printer. Aborted to avoid data loss."); + print_red("Trying to remove printer object which isn't a printer. Aborted to avoid data loss."); return; }