Code

Replaced in_array calls for gosa-plugins
[gosa.git] / gosa-plugins / goto / addons / goto / events / class_DaemonEvent.inc
index aa4995f4e59fb16326106dd8d1b47156b19655f5..5dc1d254d956f6c082a76d3cc77fe95bc5699a87 100644 (file)
@@ -111,7 +111,7 @@ class DaemonEvent
     }
 
     if(isset($data['PERIODIC']) && !preg_match("/none/i",$data['PERIODIC'])){
-      $tmp = split("_",$data['PERIODIC']);
+      $tmp = explode("_",$data['PERIODIC']);
       if(count($tmp) == 2){
         $this->activate_periodical_job = TRUE;
         $this->periodValue = $tmp[0];
@@ -567,7 +567,7 @@ class DaemonEvent
   public function set_value($name,$value)
   {
     $name = strtolower($name);
-    if(isset($this->$name) && in_array($name,$this->attributes)){
+    if(isset($this->$name) && in_array_strict($name,$this->attributes)){
       $this->$name = $value;
     }
   }