move cast up

This commit is contained in:
euromark 2014-04-08 12:22:29 +02:00
parent e948598277
commit 4679a30b37

View file

@ -121,11 +121,11 @@ class CakePlugin {
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);
}
}