From 41afe73daa9f2af9b66b680b2bec78880b34eda2 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 13 Apr 2010 13:40:23 +0000 Subject: [PATCH] Ensure that we only act on open dialogs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17655 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/samba/personal/samba/class_sambaAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2