Permalink
Browse files

FIX: Fixed incompatibility with PHP 7.2 in Dwoo 3rd party code (fixes #…

  • Loading branch information...
LarsMichelsen committed Apr 4, 2018
1 parent 19c4b15 commit 9612cd644e4e62e630ee23853770fde0dd7f8dc4
@@ -1,5 +1,6 @@
1.9.8
Frontend:
* FIX: Fixed incompatibility with PHP 7.2 in Dwoo 3rd party code
* FIX: Fixed outdated Monitoring portal link in header menu
1.9.7
@@ -2434,7 +2434,7 @@ protected function parseOthers($in, $from, $to, $parsingParams = false, $curBloc
}
$breaker = false;
while (list($k,$char) = each($breakChars)) {
foreach ($breakChars as $k => $char) {
$test = strpos($substr, $char);
if ($test !== false && $test < $end) {
$end = $test;
@@ -2939,7 +2939,7 @@ protected function mapParams(array $params, $callback, $callType=2, $map = null)
}
// loops over the param map and assigns values from the template or default value for unset optional params
while (list($k,$v) = each($map)) {
foreach ($map as $k => $v) {
if ($v[0] === '*') {
// "rest" array parameter, fill every remaining params in it and then break
if (count($ps) === 0) {
@@ -71,7 +71,7 @@ public function setData(array $data)
public function mergeData(array $data)
{
$args = func_get_args();
while (list(,$v) = each($args)) {
foreach ($args as $v) {
if (is_array($v)) {
$this->data = array_merge($this->data, $v);
}
@@ -90,7 +90,7 @@ public function assign($name, $val = null)
{
if (is_array($name)) {
reset($name);
while (list($k,$v) = each($name))
foreach ($name as $k => $v)
$this->data[$k] = $v;
} else {
$this->data[$name] = $val;

0 comments on commit 9612cd6

Please sign in to comment.