From 2251f972234828cc3ccaa8cb76113ae06e6edab1 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 May 2006 11:24:09 +0000 Subject: [PATCH] Fixed print detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3316 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.30.2