old sqlite does not define true

This commit is contained in:
Shish 2020-10-26 18:30:42 +00:00
parent 3a8817bf57
commit ed64cea8f6

View file

@ -147,11 +147,13 @@ class Tips extends Extension
$data_href = get_base_href();
$url = $data_href."/ext/tips/images/";
$tip = $database->get_row("SELECT * ".
"FROM tips ".
"WHERE enable = true ".
"ORDER BY RAND() ".
"LIMIT 1");
$tip = $database->get_row("
SELECT *
FROM tips
WHERE enable = :true
ORDER BY RAND()
LIMIT 1
", ["true"=>true]);
if ($tip) {
$this->theme->showTip($url, $tip);