[Mapbender-commits] r3515 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Feb 4 05:20:40 EST 2009
Author: christoph
Date: 2009-02-04 05:20:40 -0500 (Wed, 04 Feb 2009)
New Revision: 3515
Modified:
trunk/mapbender/http/classes/class_connector.php
Log:
the constructor threw a warning if no parameter was passed...fixed
Modified: trunk/mapbender/http/classes/class_connector.php
===================================================================
--- trunk/mapbender/http/classes/class_connector.php 2009-02-04 09:27:11 UTC (rev 3514)
+++ trunk/mapbender/http/classes/class_connector.php 2009-02-04 10:20:40 UTC (rev 3515)
@@ -38,9 +38,10 @@
* @constructor
* @param String url the URL that will be loaded (optional)
*/
- public function __construct($url){
+ public function __construct() {
$this->set("connectionType", CONNECTION);
- if ($url) {
+ if (func_num_args() == 1) {
+ $url = func_get_arg(0);
$this->load($url);
}
More information about the Mapbender_commits
mailing list