Skip to content

Commit

Permalink
move cast up
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Apr 8, 2014
1 parent e948598 commit 4679a30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Core/CakePlugin.php
Expand Up @@ -121,11 +121,11 @@ public static function load($plugin, $config = array()) {
public static function loadAll($options = array()) {
$plugins = App::objects('plugins');
foreach ($plugins as $p) {
$opts = isset($options[$p]) ? $options[$p] : array();
$opts = isset($options[$p]) ? (array)$options[$p] : array();
if (isset($options[0])) {
$opts += $options[0];
}
self::load($p, (array)$opts);
self::load($p, $opts);
}
}

Expand Down

0 comments on commit 4679a30

Please sign in to comment.