From: cajus Date: Mon, 10 Mar 2008 09:50:33 +0000 (+0000) Subject: Removed instances of $ldap->error X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d5df37e0fdc576cfade619bb98092954aeae81dc;p=gosa.git Removed instances of $ldap->error git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9485 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_FAI.inc b/gosa-plugins/fai/admin/fai/class_FAI.inc index 33bc842cb..f408ef4a6 100644 --- a/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -979,7 +979,7 @@ class FAI $ldap->add($attr); } - if($ldap->error != "Success"){ + if(!$ldap->success()){ /* Some error occurred */ print "---------------------------------------------"; diff --git a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc index 40bd1a987..c1f300793 100644 --- a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc +++ b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc @@ -57,7 +57,7 @@ class termgroup extends plugin for ($i= 0; $i<$this->attrs['member']['count']; $i++){ $member= $this->attrs['member'][$i]; $ldap->cat($member, array('objectClass', 'macAddress', 'cn')); - if (preg_match("/success/i", $ldap->error)){ + if ($ldap->success()){ $attrs = $ldap->fetch(); if (in_array("gotoTerminal", $attrs['objectClass']) || in_array("gotoWorkstation", $attrs['objectClass'])){