Make sure the Notification Email config option (in the Spam-X plugin's configuration) can be disabled
1.1 --- a/plugins/spamx/functions.inc Sun Feb 07 14:14:24 2010 -0500
1.2 +++ b/plugins/spamx/functions.inc Sun Feb 07 20:56:53 2010 +0100
1.3 @@ -210,6 +210,16 @@
1.4 $c = config::get_instance();
1.5 $c->del('admin_override', 'spamx');
1.6
1.7 + // late fix: ensure 'notification_email' option can be disabled
1.8 + $result = DB_query("SELECT value, default_value FROM {$_TABLES['conf_values']} WHERE name = 'notification_email' AND group_name = 'spamx'");
1.9 + list($value, $default_value) = DB_fetchArray($result);
1.10 + if ($value != 'unset') {
1.11 + if (substr($default_value, 0, 6) != 'unset:') {
1.12 + $unset = addslashes('unset:' . $default_value);
1.13 + DB_query("UPDATE {$_TABLES['conf_values']} SET default_value = '$unset' WHERE name = 'notification_email' AND group_name = 'spamx'");
1.14 + }
1.15 + }
1.16 +
1.17 $current_version = '1.2.1';
1.18 break;
1.19
2.1 --- a/public_html/docs/history Sun Feb 07 14:14:24 2010 -0500
2.2 +++ b/public_html/docs/history Sun Feb 07 20:56:53 2010 +0100
2.3 @@ -82,6 +82,7 @@
2.4
2.5 Spam-X Plugin
2.6 -------------
2.7 +- Make sure the Notification Email config option can be disabled [Dirk]
2.8 - List $_CONF['site_url'] as a non-editable entry in the SLV whitelist to
2.9 indicate that the site's URL is whitelisted automatically [Dirk]
2.10