From 9703738e2d9d16a1bdbc9a6418d9963a445ab18a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 27 Dec 2005 19:49:42 +0000 Subject: [PATCH] warnings -= 2 --- kernel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel.php b/kernel.php index ff4f557..ed62dd5 100644 --- a/kernel.php +++ b/kernel.php @@ -210,6 +210,8 @@ class Shared_Object_Framework */ function __construct() { + $GLOBALS['isso:null-framework'] = null; + // error reporting set_error_handler(array(&$this, '_error_handler')); @@ -227,8 +229,6 @@ class Shared_Object_Framework { $this->exec_referer_check(); } - - $GLOBALS['isso:null-framework'] = null; } // ################################################################### @@ -779,7 +779,7 @@ class Shared_Object_Framework if ($host AND $_SERVER['HTTP_REFERER']) { $parts = parse_url($_SERVER['HTTP_REFERER']); - $ourhost = $parts['host'] . (($parts['port']) ? ":$parts[port]" : ''); + $ourhost = $parts['host'] . (isset($parts['port']) ? ":$parts[port]" : ''); if ($ourhost != $host) { -- 2.22.5