summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e7112c)
raw | patch | inline | side by side (parent: 0e7112c)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Nov 2006 08:14:48 +0000 (08:14 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Nov 2006 08:14:48 +0000 (08:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5145 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history |
index 803f6ce5797cd70821a92a532c34a93efa4e7d69..4117aee961f59e0ffd72c776bfef3880ad82830a 100644 (file)
plugin::save ();
if ($this->use_dob == "1"){
- $this->attrs['dateOfBirth']= date("Y-m-d", $this->attrs['dateOfBirth']);
+ /* If it is an array, the generic page has never been loaded - so there's no difference. Using an array would cause an error btw. */
+ if(!is_array($this->attrs['dateOfBirth'])) {
+ $this->attrs['dateOfBirth']= date("Y-m-d", $this->attrs['dateOfBirth']);
+ }
}
/* Remove additional objectClasses */
$tmp= array();