]> dev.renevier.net Git - syp.git/commitdiff
err_lonlat_invalid exceptions not thrown correctly
authorarno <arno@renevier.net>
Fri, 16 Apr 2010 22:07:30 +0000 (00:07 +0200)
committerarno <arno@renevier.net>
Fri, 16 Apr 2010 22:45:55 +0000 (00:45 +0200)
inc/db/anydb.php

index b63a26400208ceafbc79ee9e5af2f630a60f2495..ca61b0f3135877af1c96737f6d9b2f2be8259e94 100644 (file)
@@ -37,14 +37,14 @@ class feature {
         // longitude
         if (!isset ($lon) || !is_numeric ($lon) ||
              ($lon < -180) || ($lon > 180)) {
-            throw new Exception ($this->err_lonlat_invalid);
+            throw new Exception (self::err_lonlat_invalid);
         }
         $this->lon = $lon;
 
         // latitude
         if (!isset ($lat) || !is_numeric ($lat) ||
              ($lat < -90) || ($lat > 90)) {
-            throw new Exception ($this->err_lonlat_invalid);
+            throw new Exception (self::err_lonlat_invalid);
         }
         $this->lat = $lat;
     }