cleaned up structure, fixed bugs
This commit is contained in:
parent
9119550d1c
commit
1979f850f9
6 changed files with 74 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue