diff --git a/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php b/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php index d987637ce..67cf434c0 100644 --- a/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php +++ b/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php @@ -56,7 +56,7 @@ class Point implements JsonSerializable { { $a = json_decode($geojson); //check if the geojson string is correct - if ($a == null or !isset($a->type) or !isset($a->coordinates)){ + if (NULL === $a or !isset($a->type) or !isset($a->coordinates)){ throw PointException::badJsonString($geojson); }