X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Fdb%2Fanydb.php;h=ca61b0f3135877af1c96737f6d9b2f2be8259e94;hp=1094365eb42a6201d99bdd0e851427d096e60977;hb=97bf88c9a2a26dc8b94c19f73c8708e1bae28337;hpb=939514b912738c5784b04a0d207db1afd918eb69 diff --git a/inc/db/anydb.php b/inc/db/anydb.php index 1094365..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; } @@ -100,7 +100,8 @@ interface anydbConnection { /* * set password $pwd for user $usrname. If $usrname does not exist, create - * it + * it. + * throws an err_query error in case $pwd is null */ public function setpwd($usrname, $pwd);