Skip to content

Commit

Permalink
Unnecessary if statement. The else clause covers all necessary scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Sofer committed Nov 20, 2011
1 parent 95b8511 commit e6c4976
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Cake/basics.php
Expand Up @@ -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) {
Expand Down

0 comments on commit e6c4976

Please sign in to comment.