adding serendipity_db_bool to global emergency moderation

This commit is contained in:
Ian 2012-02-13 11:46:26 +01:00
parent bf3b1a05e8
commit 6d4bd49ac7

View File

@ -955,7 +955,7 @@ var $filter_defaults;
}
// Check for global emergency moderation
if ($this->get_config('killswitch', false) === true) {
if (serendipity_db_bool($this->get_config('killswitch', false)) === true) {
$this->log($logfile, $eventData['id'], 'REJECTED', PLUGIN_EVENT_SPAMBLOCK_REASON_KILLSWITCH, $addData);
$eventData = array('allow_comments' => false);
$serendipity['messagestack']['comments'][] = PLUGIN_EVENT_SPAMBLOCK_ERROR_KILLSWITCH;