X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fresult.inc;h=e7e99dad47e38eca3b7aadfdf094f4c4ffdf40e2;hb=8fc54d8f71a9ba9526cd396fe8f5c6f4764fb6c3;hp=e37c118cdc14907ffdcc2e187b61afc64e9b7581;hpb=368d735fbf606b8d593b2bc7b719af81963a9699;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/result.inc b/wwwroot/inc/result.inc index e37c118..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($column); //Dynamic typing OMG... + return $this->getString($column); //Dynamic typing OMG... } function getNumRows() { //DEPRECATED!!! Use $this->rowCount(); instead!!!