Notice: Undefined variable
-
These two notices are encountered when logged out and going to the helpdesk page
Notice: Undefined variable: wpsc_recaptcha_type in /~/plugins/supportcandy/includes/admin/tickets/sign_in/sign_in.php on line 193
Notice: Undefined variable: wpsc_login_captcha in /~/plugins/supportcandy/includes/admin/tickets/sign_in/sign_in.php on line 193
If you change this line
<?php if (!$wpsc_recaptcha_type && $wpsc_login_captcha): ?>
to
<?php if (empty($wpsc_recaptcha_type) && !empty($wpsc_login_captcha)): ?>
It will resolve the issue. Because of PHP’s loose typing empty and false are roughly equivalent here.
FYI. I am a senior level PHP developer with 10yrs experience and I like to develop with full error reporting. You can find me on Stack Overflow and Github under the same username.
Thank!
- The topic ‘Notice: Undefined variable’ is closed to new replies.