From d240b101ff31d31e78cb52702028fd4bd0c5be5b Mon Sep 17 00:00:00 2001 From: niekt0 Date: Sat, 1 Oct 2011 00:36:28 +0200 Subject: [PATCH] warning removed --- wwwroot/backend/mysql/permissions.inc | 1 + wwwroot/inc/result.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/backend/mysql/permissions.inc b/wwwroot/backend/mysql/permissions.inc index da78555..14bc7d4 100644 --- a/wwwroot/backend/mysql/permissions.inc +++ b/wwwroot/backend/mysql/permissions.inc @@ -16,6 +16,7 @@ public static function checkPerms($node) { elseif (is_numeric($node)) { $node_id=$node; } + if (empty($node_vector)) { $set=$db->query("select node_vector from nodes where node_id='$node_id'"); diff --git a/wwwroot/inc/result.inc b/wwwroot/inc/result.inc index e2afa3d..e7e99da 100644 --- a/wwwroot/inc/result.inc +++ b/wwwroot/inc/result.inc @@ -39,7 +39,7 @@ class result extends PDOStatement { if (is_int($column) == true) { return (string) $this->_currentRecord[$column - 1]; } else { - return (string) $this->_currentRecord["$column"]; + return (string) isset($this->_currentRecord["$column"]) ? $this->_currentRecord["$column"]: ""; } } -- 2.30.2