From: niekt0 Date: Fri, 30 Sep 2011 22:36:28 +0000 (+0200) Subject: warning removed X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=d240b101ff31d31e78cb52702028fd4bd0c5be5b;p=mirrors%2FKyberia-bloodline.git warning removed --- 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"]: ""; } }