mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
#1505 - PHP notice: Non object property in SQLMap.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43917 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
73943f9140
commit
bdf74e499f
@ -46,7 +46,7 @@ class SQLMap extends Object implements Iterator {
|
||||
*/
|
||||
public function rewind() {
|
||||
$this->genItems();
|
||||
return $this->items->rewind()->Title;
|
||||
return $this->items->rewind() ? $this->items->rewind()->Title : null;
|
||||
}
|
||||
|
||||
public function current() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user