summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd0da88)
raw | patch | inline | side by side (parent: cd0da88)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Apr 2010 15:02:27 +0000 (15:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Apr 2010 15:02:27 +0000 (15:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17591 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/admin/systems/services/spam/class_goSpamServer.inc | patch | blob | history | |
gosa-plugins/mail/admin/systems/services/spam/class_goSpamServerRule.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/admin/systems/services/spam/class_goSpamServer.inc b/gosa-plugins/mail/admin/systems/services/spam/class_goSpamServer.inc
index ae3041cc64eebd20df78f9038c2be8f25f40c340..d5e8b6fbe144c25ce64be5638cb81930e4320b80 100644 (file)
}
/* Save rules */
- if(isset($_POST['SaveRule'])){
+ if(isset($_POST['SaveRule']) && $this->dialog instanceOf goSpamServerRule){
$this->dialog->save_object();
$msgs = $this->dialog->check();
if(count($msgs)){
diff --git a/gosa-plugins/mail/admin/systems/services/spam/class_goSpamServerRule.inc b/gosa-plugins/mail/admin/systems/services/spam/class_goSpamServerRule.inc
index 9ffa19088635f7ecd069c3a42aa4d1b3aef69b22..37ca7addafe99f8d53cca03c23a286545a91089a 100644 (file)
function save_object()
{
- plugin::save_object();
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
$this->$attr = $_POST[$attr];