old sqlite does not define true
This commit is contained in:
parent
3a8817bf57
commit
ed64cea8f6
1 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue