Error when activating plugin
Opened this issue · 2 comments
Gibsonion commented
When I activate the plugin on the front end I get the following error message
Warning
: array_merge(): Expected parameter 1 to be an array, bool given in
/home/public_html/mysite/wp-content/plugins/oxygen-repeater-fix-master/plugin.php
on line
93
le-serg commented
Hi!
Just replace 93 line $new_ids = array_merge( $existing_ids, Oxygen_Repeater_Fix_IDs::get_ids() );
with this code:
if( $existing_ids != false ) {
$new_ids = array_merge( $existing_ids, Oxygen_Repeater_Fix_IDs::get_ids() );
}else{
$new_ids = Oxygen_Repeater_Fix_IDs::get_ids();
}
le-serg commented
Plugin code with this changes https://github.com/fadlee/oxygen-repeater-fix/blob/b8dfd891fc90ba445eb493692afe40d146dd75d6/plugin.php