From: Roland Haeder Date: Wed, 21 Dec 2016 21:53:08 +0000 (+0100) Subject: no need for this else block X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6a4a736fc30e9669351dad72b67d46199f6424c;p=friendica.git no need for this else block Signed-off-by: Roland Haeder --- diff --git a/mod/proxy.php b/mod/proxy.php index bf1e93ccf8..8046e4e963 100644 --- a/mod/proxy.php +++ b/mod/proxy.php @@ -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)) {