X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fmodels%2FPathMapper.php;h=7f43e2239b64bae6d1187c9ea1c44f6571d77059;hb=d2d165910aacef01961120326452e616f53991f2;hp=8db1e2724f4098377af2c6507e1316c3f41104b0;hpb=f35ee92c9c18e4604be3a6ed8590cff6505a3200;p=syj.git diff --git a/application/models/PathMapper.php b/application/models/PathMapper.php index 8db1e27..7f43e22 100644 --- a/application/models/PathMapper.php +++ b/application/models/PathMapper.php @@ -1,5 +1,5 @@ (string)$path->geom, - 'creator'=> $path->creator->id, + 'creator'=> $path->creator? $path->creator->id: null, 'title'=> $path->title, 'creator_ip'=> $path->creatorIp );