Skip to content

Commit

Permalink
Merge pull request #990 from Codeinwp/bugfix/988
Browse files Browse the repository at this point in the history
Fixed PHP deprecated error
  • Loading branch information
vytisbulkevicius authored Nov 11, 2024
2 parents fb06971 + 7a93d4b commit 17a9119
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/admin/feedzy-rss-feeds-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public static function instance() {
* Init the default values of the options class.
*/
public function init() {
self::$instance->options = get_option( Feedzy_Rss_Feeds::get_plugin_name() );
self::$instance->options = get_option( Feedzy_Rss_Feeds::get_plugin_name(), array() );
if ( ! is_array( self::$instance->options ) ) {
self::$instance->options = array();
}
}

/**
Expand Down

0 comments on commit 17a9119

Please sign in to comment.