mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
move cast up
This commit is contained in:
parent
e948598277
commit
4679a30b37
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue