summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 307108d)
raw | patch | inline | side by side (parent: 307108d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Nov 2010 13:22:53 +0000 (13:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Nov 2010 13:22:53 +0000 (13:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20171 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_Groupware.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc
index 45dfd76d4b87a3421da11e11a3f0c40eb8274773..9e2dacb018410aa789d769eb00552ff1003be2ad 100644 (file)
{
// Get rpc handle to create or update the account
if(!$this->initially_was_account){
- $this->rpcExec('gwAcctdAdd', $this->uid, $this->mailAddress);
- if($this->rpcError){
+ $res = $this->rpcExec('gwAcctdAdd', $this->uid, $this->mailAddress);
+ if($res === NULL){
$message = _("Groupware account creation failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
// Save the primary Email Address.
if($this->isFeatureEnabled("primaryMail")&& $this->hasFeaturebeenChanged("primaryMail")){
- $this->groupwareDao->save("primaryMail", $this->uid, $this->mailAddress);
-
- if($this->rpcError){
+ $res = $this->groupwareDao->save("primaryMail", $this->uid, $this->mailAddress);
+ if($res === NULL){
$message = _("Setting account mail address failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
if(!empty($this->alternateAddresses)
&& isset($this->alternateAddresses)
&& is_array($this->alternateAddresses)){
- $this->groupwareDao->save("alternateAddresses", $this->uid, array($this->alternateAddresses));
- if($this->rpcError){
+ $res = $this->groupwareDao->save("alternateAddresses", $this->uid, array($this->alternateAddresses));
+ if($res === NULL){
$message = _("Saving alternate addresses failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
$addresses = array();
foreach($this->forwardingAddresses as $address) $addresses[$address] = TRUE;
- $this->groupwareDao->save("forwardingAddresses", $this->uid, array($addresses));
- if($this->rpcError){
+ $res = $this->groupwareDao->save("forwardingAddresses", $this->uid, array($addresses));
+ if($res === NULL){
$message = _("Saving forward addresses failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
"hard_limit" => $this->quotaSize,
"hold" => $this->quotaSize);
- $this->groupwareDao->save("quotaSize", $this->uid, $quota);
- if($this->rpcError){
+ $res = $this->groupwareDao->save("quotaSize", $this->uid, $quota);
+ if($res === NULL){
$message = _("Saving quota failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
// Save account folders
if($this->isFeatureEnabled("mailFolder") && $this->hasFeaturebeenChanged("mailFolder")){
- $this->saveFoldersAndAcls($this->uid, $this->mailFolder);
- if($this->rpcError){
+ $res = $this->saveFoldersAndAcls($this->uid, $this->mailFolder);
+ if($res === NULL){
$message = _("Saving mail folder failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
}
if($this->isFeatureEnabled("mailLocation") && $this->hasFeaturebeenChanged("mailLocation")){
- $this->groupwareDao->save("mailLocation", $this->uid, $this->mailLocation);
- if($this->rpcError){
+ $res = $this->groupwareDao->save("mailLocation", $this->uid, $this->mailLocation);
+ if($res === NULL){
$message = _("Saving mail location failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
if(!$this->mailLimitSendEnabled){
$this->mailLimitSendValue = 0;
}
- $this->groupwareDao->save("mailLimit", $this->uid, array( $this->mailLimitSendValue, $this->mailLimitReceiveValue));
- if($this->rpcError){
+ $res = $this->groupwareDao->save("mailLimit", $this->uid, array( $this->mailLimitSendValue, $this->mailLimitReceiveValue));
+ if($res === NULL){
$message = _("Saving mail limitations failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
if($this->isFeatureEnabled("vacationMessage")&& $this->hasFeaturebeenChanged("vacationMessage")){
if($this->vacationEnabled){
//setting an message means that the OOOReply is switched off.
- $this->groupwareDao->save("vacationMessage", $this->uid, $this->vacationMessage);
+ $res = $this->groupwareDao->save("vacationMessage", $this->uid, $this->vacationMessage);
}else{
//setting no message means that the OOOReply is switched off.
- $this->groupwareDao->save("vacationMessage", $this->uid, null);
+ $res = $this->groupwareDao->save("vacationMessage", $this->uid, null);
}
- if($this->rpcError){
+ if($res === NULL){
$message = _("Saving vacation message failed!");
msg_dialog::display(_("Error"),
$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),