Code

Updated array check
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Mar 2010 07:44:12 +0000 (07:44 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Mar 2010 07:44:12 +0000 (07:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16577 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_filter.inc

index 57057165b2d5827b0a37a27911ae9ffd808e425b..d45d94c8fd4f5e2ca22e36ba91afd6452ca381e7 100644 (file)
@@ -67,7 +67,7 @@ class filter {
     if (isset($xmlData['search'])) {
 
       // Array conversion
-      if (!is_array($xmlData['search'])) {
+      if (!isset($xmlData['search'][0])) {
         $searches= array($xmlData['search']);
       } else {
         $searches= $xmlData['search'];