Skip to content

Commit 7a93d4b

Browse files
Fix PHP deprecated error
1 parent 257c341 commit 7a93d4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

includes/admin/feedzy-rss-feeds-options.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ public static function instance() {
4848
* Init the default values of the options class.
4949
*/
5050
public function init() {
51-
self::$instance->options = get_option( Feedzy_Rss_Feeds::get_plugin_name() );
51+
self::$instance->options = get_option( Feedzy_Rss_Feeds::get_plugin_name(), array() );
52+
if ( ! is_array( self::$instance->options ) ) {
53+
self::$instance->options = array();
54+
}
5255
}
5356

5457
/**

0 commit comments

Comments
 (0)