]> git.mxchange.org Git - friendica.git/commitdiff
no need for this else block
authorRoland Haeder <roland@mxchange.org>
Wed, 21 Dec 2016 21:53:08 +0000 (22:53 +0100)
committerRoland Haeder <roland@mxchange.org>
Wed, 21 Dec 2016 21:53:08 +0000 (22:53 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
mod/proxy.php

index bf1e93ccf86f77add9a8fac1f75d04090cb9c2d6..8046e4e9639eabc0fd9331d13792543a60908134 100644 (file)
@@ -136,6 +136,7 @@ function proxy_init(App $a) {
        }
 
        $valid = true;
+       $r = array();
 
        if (!$direct_cache AND ($cachefile == '')) {
                $r = qu("SELECT * FROM `photo` WHERE `resource-id` = '%s' LIMIT 1", $urlhash);
@@ -146,8 +147,6 @@ function proxy_init(App $a) {
                                $mime = 'image/jpeg';
                        }
                }
-       } else {
-               $r = array();
        }
 
        if (!dbm::is_result($r)) {