From: Roland Häder Date: Mon, 12 Nov 2012 17:51:19 +0000 (+0000) Subject: Rewrote else blocks (avoided them) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b302a852a46c840cffcf10a5897459895f377a3;p=mailer.git Rewrote else blocks (avoided them) --- 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)