• Resolved proxykillah

    (@proxykillah)


    Hey,

    Could you kindly improve the solution by using isset checks to avoid common errors.

    $name = isset( $blah[‘placeholder’] ) ? $blah[‘placeholder’] : “No name entered”;
    $bool = $something == $else ? true : false;

    Thank you

    Notice: Undefined index: html_signature in /home/dave/www/ashtangayoga.ie/wp-content/plugins/codup-email-customizer/includes/helpers.php on line 6

    Notice: Undefined index: placeholder in /home/dave/www/ashtangayoga.ie/wp-content/plugins/codup-email-customizer/includes/helpers.php on line 30

    Notice: Undefined index: value in /home/dave/www/ashtangayoga.ie/wp-content/plugins/codup-email-customizer/includes/helpers.php on line 30

    Notice: Undefined index: placeholder in /home/dave/www/ashtangayoga.ie/wp-content/plugins/codup-email-customizer/includes/helpers.php on line 30

    Notice: Undefined index: value in /home/dave/www/ashtangayoga.ie/wp-content/plugins/codup-email-customizer/includes/helpers.php on line 30

    Notice: Undefined index: placeholder in /home/dave/www/ashtangayoga.ie/wp-content/plugins/codup-email-customizer/includes/helpers.php on line 30

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘use isset() to test variable existance’ is closed to new replies.