X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=wwwroot%2Finc%2Fresult.inc;h=e7e99dad47e38eca3b7aadfdf094f4c4ffdf40e2;hb=8b1d21e6dc9d2eae1f08eb6f4ca52bde9bc0efab;hp=ab421a612c789458d810246fc78b3c4879b7b48c;hpb=78f1a5f44941de2459b71c375e36cf88227c689c;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/result.inc b/wwwroot/inc/result.inc index ab421a6..e7e99da 100644 --- a/wwwroot/inc/result.inc +++ b/wwwroot/inc/result.inc @@ -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!!!