Name: Glauber Portella
Email: glauber.portella@macweb.com.br
Name: Glauber Portella
Email: glauber.portella@macweb.com.br
When i try to open the register form and there is no chatter on-line i receive a FATAL ERROR on line 55 in register.php, and the same error occur when i try access the whois_online.php.
I solved this problems in my application change the lines in register.php:
ORIGINAL:
if( !isset($_SESSION['chat']) )
{
header('Status: 302');
header('Location: '.$_SESSION['template']->get_poc_web_root().'/index.php');
exit;
}
if ( !isset($_SESSION['template']) )
{
$template = &new Template();
$_SESSION['template'] = $template;
}
Then i put:
MODIFIED:
if ( !isset($_SESSION['template']) )
{
$template = &new Template();
$_SESSION['template'] = $template;
}
if( !isset($_SESSION['chat']) )
{
header('Status: 302');
header('Location: '.$_SESSION['template']->get_poc_web_root().'/index.php');
exit;
}
I'm not sure about these changes, if it will affect other part of the source, but it works now.