Improved queries, more uncommitted queries
This commit is contained in:
parent
e5c7ce0902
commit
3e5cf5290e
12 changed files with 141 additions and 75 deletions
|
|
@ -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"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue