From b21bc7b96aa3dc3a8b57250f1f7623a4498478a0 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Dec 2006 05:49:08 +0000 Subject: [PATCH] Only log in case of an error git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5354 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ldap.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 13e17a933..b57755ab8 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -1136,12 +1136,11 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec # Get base to look for schema $sr = @ldap_read ($this->cid, NULL, "objectClass=*", array("subschemaSubentry")); $attr = @ldap_get_entries($this->cid,$sr); - $this->error = @ldap_error($this->cid); - - gosa_log($this->get_error()); if (!isset($attr[0]['subschemasubentry'][0])){ - return array(); + $this->error = @ldap_error($this->cid); + gosa_log($this->get_error()); + return array(); } # Get list of objectclasses -- 2.30.2