1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-20 21:02:05 +02:00

fixed compatibility with Nette::Config

This commit is contained in:
David Grudl
2008-05-13 13:02:26 +00:00
parent 40e9f313c3
commit b27b0193f1
3 changed files with 18 additions and 12 deletions

View File

@@ -229,7 +229,7 @@ class DibiResult extends /*Nette::*/Object implements IDataSource
*/
public function setObjects($type)
{
$this->objects = is_string($type) ? $type : (bool) $type;
$this->objects = $type;
}
@@ -281,12 +281,12 @@ class DibiResult extends /*Nette::*/Object implements IDataSource
}
if ($objects) {
if ($objects === TRUE) {
$row = (object) $row;
} else {
$row = new $objects($row);
}
}
if ($objects === TRUE) {
$row = (object) $row;
} else {
$row = new $objects($row);
}
}
return $row;
}