• Resolved daymobrew

    (@daymobrew)


    Notice: Undefined index: tc_slider_default_height in /web/wp-content/themes/customizr/inc/class-fire-init.php on line 415

    It is not checked whether $_options[‘tc_slider_default_height’] is set before checking if it is zero.

    My suggested fix:

    --- class-fire-init.orig.php	2015-01-27 09:23:50.000000000 +0000
    +++ class-fire-init.php	2015-02-12 16:42:33.438350100 +0000
    @@ -412,7 +412,7 @@
           */
           function tc_set_slider_img_height( $_default_size ) {
             $_options = get_option('tc_theme_options');
    -        if ( 0 == $_options['tc_slider_default_height'] )
    +        if ( !isset( $_options['tc_slider_default_height'] ) || 0 == $_options['tc_slider_default_height'] )
               return $_default_size;
    
             $_default_size['height'] = esc_attr( $_options['tc_slider_default_height'] );

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Notice: Undefined index: tc_slider_default_height’ is closed to new replies.