From: hickert Date: Tue, 2 Nov 2010 13:54:18 +0000 (+0000) Subject: Updated error handling for Folder updates X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5b5bbb72e80fb0413de0da63d92e7f257d72e24;p=gosa.git Updated error handling for Folder updates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20173 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc index 1e195296b..1b7440164 100644 --- a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc @@ -1122,20 +1122,23 @@ class Groupware extends plugin function saveFoldersAndAcls($id, $mailFolder) { // In the tests with the exchange server groupware setting acls is very - // slow. So this function has got to be checked for modifications. + // slow. So this function has got o be checked for modifications. + $res = TRUE; foreach($mailFolder as $key => $val) { if(!empty($val["status"])){ switch($val["status"]){ case "add": - $this->groupwareDao->save("mailFolder", $id, $key); + $res = $this->groupwareDao->save("mailFolder", $id, $key); break; case "del": - $this->groupwareDao->delete("mailFolder", $id, $key); + $res = $this->groupwareDao->delete("mailFolder", $id, $key); break; } } + if($res === NULL) return($res); } + return($res); } }