Code

Ensure that we only act on open dialogs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Apr 2010 13:40:23 +0000 (13:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Apr 2010 13:40:23 +0000 (13:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17655 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/samba/personal/samba/class_sambaAccount.inc

index 2346f6124df227f1c3b63d9c660ccb024c419957..8b28a95f3035f56ad1dfcf3a4e750a8930190f41 100644 (file)
@@ -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();