cleaned up structure, fixed bugs

This commit is contained in:
Logsol 2013-07-08 22:14:56 +02:00
parent 9119550d1c
commit 1979f850f9
6 changed files with 74 additions and 6 deletions

View file

@ -339,7 +339,7 @@ class Katharsis_Db5
if($field === null)
{
$result = $this->_fetch($statement, self::FETCHMODE_ARRAY, true);
return $result[0];
return isset($result[0]) ? $result[0] : null;
} else
{
$result = $this->_fetch($statement, self::FETCHMODE_ASSOC, true);