warning removed
authorniekt0 <niekt0@kyberia.cz>
Fri, 30 Sep 2011 22:36:28 +0000 (00:36 +0200)
committerniekt0 <niekt0@kyberia.cz>
Fri, 30 Sep 2011 22:36:28 +0000 (00:36 +0200)
wwwroot/backend/mysql/permissions.inc
wwwroot/inc/result.inc

index da78555fd748431541df0230fd642d38a153bda8..14bc7d42b245d9e36d5194abfb51ee673c0ba57c 100644 (file)
@@ -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'");
index e2afa3d815cf0026885dc3f8a23ffe06bbaa6da8..e7e99dad47e38eca3b7aadfdf094f4c4ffdf40e2 100644 (file)
@@ -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"]: "";
                }
        }
 
This page took 0.12345 seconds and 4 git commands to generate.