From ba3eca607c3b10789165077bd8e91d9e2f78acd4 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 25 Feb 2010 13:55:51 +0000 Subject: [PATCH] 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 --- gosa-plugins/mail/personal/mail/class_mailAccount.inc | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2