I'm receiving an Undefined variable error, I tried adding var $nx = ''; but that didn't help. Am I missing something? Notice: Undefined variable: nx in /home/social/public_html/kernel/parser.php on line 55
while (!feof($f)) {
$s = chop(fgets($f,4096));
if ($s == '') continue;
if (substr($s,0,5) == '<!--[') {
if ($nx != '') $this->templ[] = $nx;
$this->templ[] = $s;
$nx = '';
}
elseif (substr($s,0,5) == '<?php') {
if ($nx != '') $this->templ[] = $nx;
$nx = $s;
}
else
////// LINE 55 $nx .= ($nx != '' ? "\n" : '').$s;
if (substr($nx,-2) == '?>') {
$this->templ[] = $nx;
$nx = '';
}
}