Code

Updated checks
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 May 2010 09:20:56 +0000 (09:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 May 2010 09:20:56 +0000 (09:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18546 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_core.inc

index d7a528bcd5a264c83056c3f61877790351e3b1a0..b8d7bbd581b98b697a2f81c124bf492035196cfd 100644 (file)
@@ -35,9 +35,12 @@ class core extends plugin {
                 break;
             case 'theme':
                 $cmd = "cd ../ihtml/themes; find . -name 'img.styles' | sed s/'^[^\/]*\/\([^\/]*\).*'/'\\1'/g";
-                $res = `$cmd`;
+                $res = `$cmd`  ; 
+                $list = array();
                 foreach(preg_split("/\n/",$res) as $entry){
-                    $list[$entry] = $entry;
+                    if(!empty($entry)){
+                        $list[$entry] = $entry;
+                    }
                 }
                 break;
             case 'accountPrimaryAttribute':
@@ -375,7 +378,7 @@ class core extends plugin {
                                 "check"         => "",
                                 "migrate"       => "",
                                 "group"         => "visual",
-                                "mandatory"     => FALSE),
+                                "mandatory"     => TRUE),
 
                         array(
                                 "name"          => "sessionLifetime",