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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user