From 09bb2e2adb740c67b74848e6eac59844f457e2af Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 13 Sep 2007 10:40:50 +0000 Subject: [PATCH] Removed unsed function 'array_search_r' remove error_reporting() from class_plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7288 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 4 ---- include/functions.inc | 22 ---------------------- 2 files changed, 26 deletions(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 47dd20c51..462be0b6c 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -175,7 +175,6 @@ class plugin } /* Is Account? */ - error_reporting(0); $found= TRUE; foreach ($this->objectclasses as $obj){ if (preg_match('/top/i', $obj)){ @@ -186,7 +185,6 @@ class plugin break; } } - error_reporting(E_ALL | E_STRICT); if ($found){ $this->is_account= TRUE; @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, @@ -760,7 +758,6 @@ class plugin } $r=ldap_bind($ds,$this->config->current['ADMIN'], $this->config->current['PASSWORD']); - error_reporting (0); $sr=ldap_read($ds, @LDAP::fix($src_dn), "objectClass=*"); /* Fill data from LDAP */ @@ -783,7 +780,6 @@ class plugin } /* close conncetion */ - error_reporting (E_ALL | E_STRICT); ldap_unbind($ds); /* Adapt naming attribute */ diff --git a/include/functions.inc b/include/functions.inc index e6645288a..27eac9098 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1673,28 +1673,6 @@ return(array_unique($ret)); } -function array_search_r($needle, $key, $haystack){ - - foreach($haystack as $index => $value){ - $match= 0; - - if (is_array($value)){ - $match= array_search_r($needle, $key, $value); - } - - if ($index==$key && !is_array($value) && preg_match("/$needle/i", $value)){ - $match=1; - } - - if ($match){ - return 1; - } - } - - return 0; -} - - /* Sadly values like memory_limit are perpended by K, M, G, etc. Need to convert... */ function to_byte($value) { -- 2.30.2