isset/undefined issue

Links for php scripts

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Tue Jun 19, 2012 8:36 am

Where are you calling the $msg variable?
From what I can see, you are only assigning the variable IF there is an error, which it would appear not to be likely if the user has > 0 and <= 999 items in a cart. If you want to mitigate this error, either assign it $msg = '' before adding any text to it, or do..

if (isset($msg)) {
echo '<span>'.$msg.'</span>';

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest