]> 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:32 +0000 (22:53 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
mod/proxy.php

index e14f08570c377ce8ed96e7f8ef7380747e132234..a8c24cf0886831e878ba39c1aba13c5f8c769cb2 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);
@@ -158,8 +159,6 @@ function proxy_init(App $a) {
 =======
 >>>>>>> upstream/develop
                }
-       } else {
-               $r = array();
        }
 
        if (!dbm::is_result($r)) {