@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | $limit = Tools::getValue('limit'); |
37 | 37 | } |
38 | 38 | if (Tools::getValue('from', false)) { |
39 | - $where = 'WHERE createdAt >= \'' . Tools::getValue('from') . '\''; |
|
39 | + $where = 'WHERE createdAt >= \''.Tools::getValue('from').'\''; |
|
40 | 40 | } |
41 | - $sql = 'SELECT * FROM ' . _DB_PREFIX_ . 'pagantis_log ' . $where . ' ORDER BY id desc LIMIT ' . $limit; |
|
41 | + $sql = 'SELECT * FROM '._DB_PREFIX_.'pagantis_log '.$where.' ORDER BY id desc LIMIT '.$limit; |
|
42 | 42 | if ($results = Db::getInstance()->ExecuteS($sql)) { |
43 | 43 | foreach ($results as $row) { |
44 | 44 | $data = (is_null(json_decode($row['log']))) ? $row['log'] : json_decode($row['log']); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | header('HTTP/1.1 200 Ok', true, 200); |
64 | 64 | header('Content-Type: application/json', true); |
65 | - header('Content-Length: ' . Tools::strlen($result)); |
|
65 | + header('Content-Length: '.Tools::strlen($result)); |
|
66 | 66 | |
67 | 67 | echo $result; |
68 | 68 | exit(); |