How am I using it before it is defined when it contains a string of “*”? Is not containing a string, defined?
This is the line of code that is suppose to set the variable, and it works too, I just get this warning… The isset() statement is not solving the problem…
Also, the echo statement (inserted for testing, verifies that there is something in the variable)
And just to make sure (for testing), I inserted
[php]$portal_view = ‘*’;[/php]
right before the line that causes the error and still get an undefined index warning.
Appreciate the reply, but it didn’t help…
Can anyone tell me what would cause an undefined index warning on a variable that IS defined? (It contains a string.)
BTW:Using the isset() statement has always worked in the past for me. This time it’s not working…
Expected Solution (Not working): [i]
Assuming I am unable to find the reason for this, thus not be able to fix it. My workaround will be to add the following line at the top of my set_variables.php file.
[php]error_reporting(E_ALL ^ E_NOTICE);[/php]
Which seems to disable error reporting from within the code.
And I think adding this to the end of the file should turn it back on.
[php]error_reporting(E_ALL);[/php]?