From 97bf88c9a2a26dc8b94c19f73c8708e1bae28337 Mon Sep 17 00:00:00 2001 From: arno Date: Sat, 17 Apr 2010 00:07:30 +0200 Subject: [PATCH] err_lonlat_invalid exceptions not thrown correctly --- inc/db/anydb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2