Jeste lepsi vychytafka trasovani templat :-)
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / result.inc
index ab421a612c789458d810246fc78b3c4879b7b48c..e7e99dad47e38eca3b7aadfdf094f4c4ffdf40e2 100644 (file)
@@ -39,12 +39,12 @@ 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"]: "";
                }
        }
 
        function getInt($column) {      //DEPRECATED!!! Use $this->fetch(); instead!!!
-               $this->getString(); //Dynamic typing OMG...
+               return $this->getString($column); //Dynamic typing OMG...
        }
 
        function getNumRows() { //DEPRECATED!!! Use $this->rowCount(); instead!!!
This page took 0.101509 seconds and 4 git commands to generate.