From 4b302a852a46c840cffcf10a5897459895f377a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 12 Nov 2012 17:51:19 +0000 Subject: [PATCH] Rewrote else blocks (avoided them) --- inc/filters.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/filters.php b/inc/filters.php index 38193a2059..8ab2c11d18 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -1309,17 +1309,17 @@ function FILTER_HANDLE_REFERRER_BANNER_VIEW ($filterData) { // Redirect redirectToUrl($data['url'], FALSE); - } else { - // @TODO No banner found, output some default banner - logDebugMessage(__FUNCTION__, __LINE__, 'Banner ' . bigintval(getRequestElement('banner')) . ' not dound.'); - } + } // END - if + + // @TODO No banner found, output some default banner + logDebugMessage(__FUNCTION__, __LINE__, 'Banner ' . bigintval(getRequestElement('banner')) . ' not found.'); // Free memory SQL_FREERESULT($result); - } else { - // Do nothing for now - redirectToUrl('modules.php?module=index'); - } + } // END - if + + // Do nothing for now + redirectToUrl('modules.php?module=index'); } // Filter for redirecting on wrong server name (e.g. bad.your-server.tld will be redirected to your-server.tld) -- 2.39.5