Skip to content

Commit

Permalink
Fixes warning thrown by get_theme_option() when theme had no options …
Browse files Browse the repository at this point in the history
…associated with it.
  • Loading branch information
kriskelly committed Jun 21, 2010
1 parent 513e402 commit 37f08dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ function get_theme_option($optionName, $theme = null)
$themeOptions = unserialize($themeOptions);
}

if (array_key_exists($optionName, $themeOptions)) {
if (is_array($themeOptions) && array_key_exists($optionName, $themeOptions)) {
return $themeOptions[$optionName];
}

Expand Down

0 comments on commit 37f08dd

Please sign in to comment.