Im getting this error on line $options[ $option ] = $value;
Warning: Illegal offset type in
and code is:
public function set_option( $option = '', $value = '' ) {
if ( $option == '' ) {
return;
}
// get current options
$options = $this->options();
// set options
$options[ $option ] = $value;
// save options
$this->options = $options;
}
I do gettype of $option and it say string :(
$option? it probably is an array or an object that can't be used as an index. that should be the problem.