errors ( fix)
-
this script was throwing a bunch of errors in debug mode when attributes were not set/used. solved it by adding some isset ternary to the code:
$attr['autoHeight'] = isset($atts['autoheight']) ? self::eval_bool( $atts['autoheight'] ):''; $attr['disabled'] = isset($atts['disabled']) ? self::eval_bool( $atts['disabled'] ):''; $attr['active'] = isset($atts['active']) ? (int)$atts['active']:''; $attr['clearStyle'] = isset($atts['clearstyle']) ? self::eval_bool( $atts['clearstyle']):''; $attr['collapsible']= isset($atts['collapsible']) ? self::eval_bool( $atts['collapsible']):''; $attr['fillSpace'] = isset($atts['fillspace']) ? self::eval_bool( $atts['fillspace']):'';
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘errors ( fix)’ is closed to new replies.