Code

Small fix
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 4 Jan 2007 10:13:49 +0000 (10:13 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 4 Jan 2007 10:13:49 +0000 (10:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5468 594d385d-05f5-0310-b6e9-bd551577e9d8

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 {