no need for this else block
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
2178feab30
commit
e6a4a736fc
|
@ -136,6 +136,7 @@ function proxy_init(App $a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$valid = true;
|
$valid = true;
|
||||||
|
$r = array();
|
||||||
|
|
||||||
if (!$direct_cache AND ($cachefile == '')) {
|
if (!$direct_cache AND ($cachefile == '')) {
|
||||||
$r = qu("SELECT * FROM `photo` WHERE `resource-id` = '%s' LIMIT 1", $urlhash);
|
$r = qu("SELECT * FROM `photo` WHERE `resource-id` = '%s' LIMIT 1", $urlhash);
|
||||||
|
@ -146,8 +147,6 @@ function proxy_init(App $a) {
|
||||||
$mime = 'image/jpeg';
|
$mime = 'image/jpeg';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$r = array();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dbm::is_result($r)) {
|
if (!dbm::is_result($r)) {
|
||||||
|
|
Loading…
Reference in a new issue