Browse Source

Merge pull request #701 from markusg/master

Rspamd History fix small error
André Peters 7 years ago
parent
commit
f7e3626e67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/web/inc/functions.inc.php

+ 1 - 1
data/web/inc/functions.inc.php

@@ -930,7 +930,7 @@ function get_logs($container, $lines = 100) {
     curl_setopt($curl, CURLOPT_URL,"http://rspamd-mailcow:11334/history");
     curl_setopt($curl, CURLOPT_URL,"http://rspamd-mailcow:11334/history");
     curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
     curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
     $history = curl_exec($curl);
     $history = curl_exec($curl);
-    if (!curl_errno($ch)) {
+    if (!curl_errno($curl)) {
       $data_array = json_decode($history, true);
       $data_array = json_decode($history, true);
       curl_close($curl);
       curl_close($curl);
       return $data_array['rows'];
       return $data_array['rows'];