Unnecessary if statement. The else clause covers all necessary scenarios

This commit is contained in:
Dean Sofer 2011-11-19 17:08:46 -08:00
parent 95b85118c7
commit e6c49766c7

View file

@ -44,9 +44,7 @@
function config() {
$args = func_get_args();
foreach ($args as $arg) {
if ($arg === 'database' && file_exists(APP . 'Config' . DS . 'database.php')) {
include_once(APP . 'Config' . DS . $arg . '.php');
} elseif (file_exists(APP . 'Config' . DS . $arg . '.php')) {
if (file_exists(APP . 'Config' . DS . $arg . '.php')) {
include_once(APP . 'Config' . DS . $arg . '.php');
if (count($args) == 1) {