old sqlite does not define true
This commit is contained in:
parent
3a8817bf57
commit
ed64cea8f6
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user