From d2d165910aacef01961120326452e616f53991f2 Mon Sep 17 00:00:00 2001 From: arno Date: Sun, 20 Mar 2011 15:59:50 +0100 Subject: [PATCH] fixes php warning when uploading a file without being logged --- application/models/PathMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/PathMapper.php b/application/models/PathMapper.php index 51c2d34..7f43e22 100644 --- a/application/models/PathMapper.php +++ b/application/models/PathMapper.php @@ -66,7 +66,7 @@ class Syj_Model_PathMapper public function save (Syj_Model_Path $path) { $data = array( 'geom'=> (string)$path->geom, - 'creator'=> $path->creator->id, + 'creator'=> $path->creator? $path->creator->id: null, 'title'=> $path->title, 'creator_ip'=> $path->creatorIp ); -- 2.39.2