I have reading some of the other posts relating the same error I that am getting but I have not quite found the way to see the error in my script.
public function chtmlblock( $name, $html_path )
{
$this->m_name = $name;
$this->m_root = $this;
if ( $html_path != null )
{
$Var_360->CHtml( );
$this->m_html = $Var_360;
LoadTemplate( $html_path, "main" );
global $g;
global $l;
global $p;
global $xajax;
global $g;
if ( !empty( "xajax" ) && $p != "flashchat.php" )
{
$sJsFile = strpos( $_SERVER['HTTP_HOST'], "abc" ) === false ? "xajax_js/xajax.js" : "xajax_js/xajax_noalerts.js";
setvar( "xajax_js", getJavascript( $g['path']['url_main'].$g['to_root']."_server/", $sJsFile ) );
The error is in line 23 - if ( !empty( "xajax" ) && $p != "flashchat.php" )
What am not seeing?