[Cartoweb-dev] [Bug 1353] New: trhow exception if no refMarks parameter set

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Mon Mar 13 04:16:43 EST 2006


http://bugzilla.maptools.org/show_bug.cgi?id=1353

           Summary: trhow exception if no refMarks parameter set
           Product: CartoWeb
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: cartoweb-dev at lists.maptools.org
        ReportedBy: pierre.giraud at camptocamp.com


Index: ServerLocation.php
===================================================================
RCS file:
/var/lib/cvs/projects/cw3/cartoweb3/coreplugins/location/server/ServerLocation.php,v
retrieving revision 1.57
diff -u -r1.57 ServerLocation.php
--- ServerLocation.php	21 Feb 2006 13:14:21 -0000	1.57
+++ ServerLocation.php	13 Mar 2006 09:10:57 -0000
@@ -883,6 +883,9 @@
         $origin = $this->getConfig()->refMarksOrigin;
         if (!is_null($origin)) {
             list($originx, $originy) = explode(',', $origin);
+        } else {
+            throw new CartoserverException('no parameters set for ' .
+                    'refMarks in location.ini');
         }
         $intervals = ConfigParser::parseObjectArray($this->getConfig(),
                                                     'refMarksInterval',



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Cartoweb-dev mailing list