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() {