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