From 8c2ee00809a86e8974c584f93e19997d7b73a696 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 3 Apr 2008 13:19:34 +0000 Subject: [PATCH] closes #405 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10148 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/admin/devices/class_deviceGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc index d9ab5bf76..a92a9cbb7 100644 --- a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc +++ b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc @@ -143,7 +143,7 @@ class deviceGeneric extends plugin $ldap->search("(&(objectClass=gotoEnvironment)(gotoHotplugDeviceDN=".$this->dn."))",array("cn","gotoHotplugDeviceDN")); $skip = FALSE; $obj = array(); - while($cnt && $attrs = $ldap->fetch()){ + while($attrs = $ldap->fetch()){ $obj[$ldap->getDN()]= $attrs['cn'][0]; $skip =TRUE; } -- 2.30.2