Forums Sign Up Reply Search Statistics
Fast Template GraFX Software Solutions - Forum / Fast Template /

Eliminating some notices in FUNCTION value_defined

 
Author SSM
Forums Member
#1 Posted: 9 Nov 2009 20:45:23
Reply 
Hi!
I got php notices like this
Notice: Undefined index: SOME_VAR in E:\Projects\SomeProject\cls_fast_template.php on line 605

I'm not sure that it's a bug, but I fixed it next way:
in FUNCTION value_defined($value, $field = '', $params = '')
changed lines
$var = $this->PARSEVARS [$value];
if ($field {0} == '.') {

to
$var = NULL;
if (array_key_exists($value, $this->PARSEVARS))
{
$var = $this->PARSEVARS [$value];
}
if (strlen($field)>0 && $field {0} == '.') {
Author software
Admin
#2 Posted: 11 Nov 2009 07:16:10
Reply 
I have proposed this to review, thank you.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.