[Mapbender-commits] r9959 - trunk/mapbender/http/php/wrappers
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Sep 11 21:40:03 PDT 2018
Author: armin11
Date: 2018-09-11 21:40:02 -0700 (Tue, 11 Sep 2018)
New Revision: 9959
Modified:
trunk/mapbender/http/php/wrappers/mbw_split.php
Log:
Fix for split wrapper for php7 compatibility
Modified: trunk/mapbender/http/php/wrappers/mbw_split.php
===================================================================
--- trunk/mapbender/http/php/wrappers/mbw_split.php 2018-09-11 14:41:01 UTC (rev 9958)
+++ trunk/mapbender/http/php/wrappers/mbw_split.php 2018-09-12 04:40:02 UTC (rev 9959)
@@ -31,23 +31,10 @@
$result = null;
if (strpos($phpversion, "5.") === 0) {
- switch ($phpversion[2]) {
- case "0":
- case "1":
- case "2":
- $result = split($pars);
- break;
- default:
- if (isset($pars[2]) && $pars[2] <= 0) {
- $result = explode($pars[0],$pars[1]);
- }
- else {
- $result = explode($pars[0],$pars[1],$pars[2]);
- }
- }
+ $result = split($pars);
}
else if (strpos($phpversion, "7.") === 0) {
- if (isset($pars[2]) && $pars[2] <= 0) {
+ if ($pars[2] == NULL) {
$result = explode($pars[0],$pars[1]);
}
else {
@@ -56,4 +43,4 @@
}
return $result;
-}
\ No newline at end of file
+}
More information about the Mapbender_commits
mailing list