From: arno Date: Fri, 16 Apr 2010 22:07:30 +0000 (+0200) Subject: err_lonlat_invalid exceptions not thrown correctly X-Git-Tag: v0.4~1 X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=commitdiff_plain;h=97bf88c9a2a26dc8b94c19f73c8708e1bae28337;hp=1ad14fc7b8607e10b0bafeb76919a2fca8afe7d8 err_lonlat_invalid exceptions not thrown correctly --- diff --git a/inc/db/anydb.php b/inc/db/anydb.php index b63a264..ca61b0f 100644 --- a/inc/db/anydb.php +++ b/inc/db/anydb.php @@ -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; }