mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Fixed SQLite caching issue
* count(): Parameter must be an array or an object that implements Countable * It happens because of in PHP 7.2 NULL in count() return Warning
This commit is contained in:
parent
715ac11a8d
commit
5be722c69a
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class Sqlite extends Common
|
||||||
SELECT cache_name, cache_value
|
SELECT cache_name, cache_value
|
||||||
FROM " . $this->cfg['table_name'] . "
|
FROM " . $this->cfg['table_name'] . "
|
||||||
WHERE cache_name IN('$this->prefix_sql" . implode("','$this->prefix_sql", $name_sql) . "') AND cache_expire_time > " . TIMENOW . "
|
WHERE cache_name IN('$this->prefix_sql" . implode("','$this->prefix_sql", $name_sql) . "') AND cache_expire_time > " . TIMENOW . "
|
||||||
LIMIT " . \count($name) . "
|
LIMIT " . \count($name_sql) . "
|
||||||
");
|
");
|
||||||
|
|
||||||
$this->db->debug('start', 'unserialize()');
|
$this->db->debug('start', 'unserialize()');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue