Skip to content

Commit

Permalink
$pref['type'] is not always set.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 27, 2014
1 parent 4233fa3 commit 1861b20
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public function get($scope_ob)

if (isset($pconf->config['_prefs'])) {
foreach ($pconf->config['_prefs'] as $name => $pref) {
if (!isset($pref['value']) || in_array($pref['type'], $ui)) {
if (!isset($pref['value']) ||
(isset($pref['type']) && in_array($pref['type'], $ui))) {
continue;
}

Expand Down

0 comments on commit 1861b20

Please sign in to comment.