Code

Small fix
[gosa.git] / plugins / personal / generic / class_user.inc
index 063a974c3c93875a999d9bde394dbec8c93702a7..1b14539b8f284cdd4699703d7c1d714e88982d7a 100644 (file)
@@ -221,7 +221,7 @@ class user extends plugin
         $date = $this->dateOfBirth;
   
         // Trigger on dates like 1985-04-01, getdate only understands timestamps
-      } else if (!is_numeric($this->dateOfBirth)){
+      } else if (!empty($this->dateOfBirth) && !is_numeric($this->dateOfBirth)){
         $date= getdate(strtotime($this->dateOfBirth));
 
       } else {