Notice: Undefined variable > GitHub?
-
After activating the plugin, a lot of undefined variable notices are being thrown:
Notice: Undefined variable: layout_arr in .../class-smoobu-calendar.php on line 96
Fix: define the array:private function set_layout( $layout ) { // form an array of measures. $layout_arr = array();
Next:
Notice: Undefined index: general_bg in .../styling.php on line 110
Fix: check if the key exists before echoing it:if( ! empty( $default_settings[ $key ] ) ){ echo esc_attr( $default_settings[ $key ] ); }
Is there a GitHub repo that can be forked, fix and a pull request submitted?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Notice: Undefined variable > GitHub?’ is closed to new replies.