From: hickert Date: Tue, 13 Apr 2010 13:40:23 +0000 (+0000) Subject: Ensure that we only act on open dialogs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=41afe73daa9f2af9b66b680b2bec78880b34eda2;p=gosa.git Ensure that we only act on open dialogs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17655 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index 2346f6124..8b28a95f3 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -232,7 +232,7 @@ class sambaAccount extends plugin } /* Save selected logon hours */ - if(isset($_POST['save_logonHours'])){ + if(isset($_POST['save_logonHours']) && $this->dialog instanceOf sambaLogonHours){ $this->dialog->save_object(); if($this->acl_is_writeable("sambaLogonHours")){ $this->sambaLogonHours = $this->dialog->save();