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(); $data_href = get_base_href();
$url = $data_href."/ext/tips/images/"; $url = $data_href."/ext/tips/images/";
$tip = $database->get_row("SELECT * ". $tip = $database->get_row("
"FROM tips ". SELECT *
"WHERE enable = true ". FROM tips
"ORDER BY RAND() ". WHERE enable = :true
"LIMIT 1"); ORDER BY RAND()
LIMIT 1
", ["true"=>true]);
if ($tip) { if ($tip) {
$this->theme->showTip($url, $tip); $this->theme->showTip($url, $tip);