From 5eef5b5a99bcd89912d8196bf56bf4e9b2ad5068 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 25 Feb 2010 16:36:23 +0000 Subject: [PATCH] merged patches git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@15718 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