Skip to content

Commit

Permalink
Fix #2901
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Feb 24, 2014
1 parent dea6177 commit de9ec10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/core/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ function &load_class($class, $directory = 'libraries', $param = NULL)
// Keep track of what we just loaded
is_loaded($class);

return $_classes[$class] = isset($param)
$_classes[$class] = isset($param)
? new $name($param)
: new $name();
return $_classes[$class];
}
}

Expand Down

0 comments on commit de9ec10

Please sign in to comment.