We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 923601b commit 1cc9f54Copy full SHA for 1cc9f54
CleanTalk/lib/Cleantalk/Antispam/SFW.php
@@ -281,10 +281,8 @@ public function send_logs() {
281
} else {
282
return $result;
283
}
284
-
285
- } else {
286
- return array('error' => true, 'error_string' => 'NO_LOGS_TO_SEND');
287
+ return false;
288
289
290
/*
CleanTalk/lib/Cleantalk/ApbctXF2/Funcs.php
@@ -84,7 +84,7 @@ public function ctSFWUpdate($access_key) {
84
public function ctSFWSendLogs($access_key) {
85
$sfw = new CleantalkSFW($access_key);
86
$result = $sfw->send_logs();
87
- if (empty($result['error'])) {
+ if ($result) {
88
$this->app->repository('XF:Option')->updateOption('ct_sfw_last_send_log',time());
89
90
0 commit comments