Permalink
Browse files

Unnecessary if statement. The else clause covers all necessary scenarios

  • Loading branch information...
Dean Sofer
Dean Sofer committed Nov 20, 2011
1 parent 95b8511 commit e6c49766c7183a6ab203f04f78042b7d42e0c583
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/Cake/basics.php
@@ -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) {

0 comments on commit e6c4976

Please sign in to comment.