1
0
Fork 0

Improved queries, more uncommitted queries

This commit is contained in:
Michael Vogel 2016-10-17 18:38:51 +00:00
commit 3e5cf5290e
12 changed files with 141 additions and 75 deletions

View file

@ -135,7 +135,7 @@ function proxy_init() {
$valid = true;
if (!$direct_cache AND ($cachefile == "")) {
$r = q("SELECT * FROM `photo` WHERE `resource-id` = '%s' LIMIT 1", $urlhash);
$r = qu("SELECT * FROM `photo` WHERE `resource-id` = '%s' LIMIT 1", $urlhash);
if (count($r)) {
$img_str = $r[0]['data'];
$mime = $r[0]["desc"];