X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fmodels%2FPathMapper.php;h=7f43e2239b64bae6d1187c9ea1c44f6571d77059;hp=51c2d34ebe19c27288812aecb66f0c38e43d1a10;hb=d2d165910aacef01961120326452e616f53991f2;hpb=c62fec904635ab47cff34f23db822e7ff017dd4e 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 );