From: hickert Date: Thu, 25 Feb 2010 13:55:51 +0000 (+0000) Subject: Fixed problem with vacation import and replacement of arrays X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ba3eca607c3b10789165077bd8e91d9e2f78acd4;p=gosa.git Fixed problem with vacation import and replacement of arrays git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15711 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc index f0ceb781a..12755e1c2 100644 --- a/gosa-plugins/mail/personal/mail/class_mailAccount.inc +++ b/gosa-plugins/mail/personal/mail/class_mailAccount.inc @@ -746,6 +746,10 @@ class mailAccount extends plugin } foreach ($attrs as $val){ + + // We can only replace strings here + if(!is_string($obj->$val)) continue; + if(preg_match("/dateOfBirth/",$val)){ if($obj->use_dob){ $contents= preg_replace("/%$val/",date("Y-d-m",$obj->dateOfBirth),$contents);