Undefined Variable "Error"
-
Hey all! First of all, thank you so much for using my plugin. I really appreciate it.
I want to talk about all of the forum posts about ‘Undefined Variable’ “Errors.” This is not actually a PHP “Error,” it’s just a notice. I am aware of these notices and it will not affect the way the plugin functions at all. It’s not breaking your site or making anything else on your site not function. I will fix these notices in the next release.
Warning, dev speak ahead
The notice results in not initializing a variable before attempting to get its value.What I did:
if ($variable = 'hello') { //do something }
What I’ll do to fix it:
$variable = ' '; //do lots of cool stuff here if ($variable = 'hello') { //do something }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Undefined Variable "Error"’ is closed to new replies.