From bdf74e499f3ef14a919b4be5ec6b645ef0f1ae0a Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 29 Oct 2007 01:02:40 +0000 Subject: [PATCH] #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 --- core/model/SQLMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/SQLMap.php b/core/model/SQLMap.php index 0f2f71eb0..292d97fb1 100755 --- a/core/model/SQLMap.php +++ b/core/model/SQLMap.php @@ -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() {