diff --git a/inc/function-options.php b/inc/function-options.php index 1841085..c83e995 100644 --- a/inc/function-options.php +++ b/inc/function-options.php @@ -53,7 +53,7 @@ class GOVPH public function __construct() { - $this->options = get_option('govph_options'); + $this->options = get_option('govph_options', array()); // to avoid warnings, reinstatiate all arrays that does not exist if(sizeof($this->options) > 0){ $this->options = array_merge($this->_default_options, $this->options); @@ -1056,4 +1056,4 @@ function govph_displayoptions( $options ){ echo $bg; break; } - } \ No newline at end of file + }