diff --git a/syntax/inc/cache.php b/syntax/inc/cache.php index efbcc9f..d686d1b 100644 --- a/syntax/inc/cache.php +++ b/syntax/inc/cache.php @@ -72,7 +72,7 @@ public function checkAndBuildCache($data, $sql, &$dtlist) { } if(!$cachedate || $latest > (int) $cachedate || isset($_REQUEST['purge'])) { $res = $sqlite->query($sql); - $rows = sqlite_fetch_all($res, SQLITE_NUM); + $rows = $res->fetchAll(SQLITE_NUM); file_put_contents($cachefile, serialize($rows), LOCK_EX); } else { // We arrive here when the cache seems up-to-date. However, @@ -123,4 +123,4 @@ public function getData($sql) { $data = unserialize($datastr); return $data; } -} \ No newline at end of file +}