1
0

syntax fixes, if without brackets

This commit is contained in:
Stephan Brunker
2020-06-06 01:49:43 +02:00
parent 6b4b1bda18
commit 3d975cd562
3 changed files with 47 additions and 17 deletions

@ -672,7 +672,9 @@ class serendipity_event_spamblock extends serendipity_event
$ret = false;
require_once S9Y_PEAR_PATH . 'HTTP/Request2.php';
if (function_exists('serendipity_request_start')) serendipity_request_start();
if (function_exists('serendipity_request_start')) {
serendipity_request_start();
}
// this switch statement is a leftover from blogg.de support (i.e. there were more options than just one). Leaving it in place in case we get more options again in the future.
switch($where) {
@ -700,7 +702,9 @@ class serendipity_event_spamblock extends serendipity_event
break;
}
if (function_exists('serendipity_request_end')) serendipity_request_end();
if (function_exists('serendipity_request_end')) {
serendipity_request_end();
}
return $ret;
}
@ -1478,7 +1482,9 @@ class serendipity_event_spamblock extends serendipity_event
// Check for word filtering
if ($filter_type = $this->get_config('contentfilter_activate', 'moderate')) {
if($ftc) $filter_type = 'reject';
if($ftc) {
$filter_type = 'reject';
}
// Filter authors names
$filter_authors = explode(';', $this->get_config('contentfilter_authors', $this->filter_defaults['authors']));