Commit b70313c6 authored by Tino Goratsch's avatar Tino Goratsch

apply some fixes for PHP 7.3

parent c5378858
......@@ -37,7 +37,7 @@ class HeaderColumnRenderer extends AbstractColumnRenderer
public function fetchDataAndRenderColumn(array $column, array $dbResultRow)
{
if ($column['type'] === MassActionColumnRenderer::class) {
$id = \preg_replace('=[^\w\d-_]=', '', $column['label']) . '-mark-all';
$id = \preg_replace('=[^\w\d\-_]=', '', $column['label']) . '-mark-all';
$value = '<input type="checkbox" id="' . $id . '" value="1" ' . $this->markEntriesHelper->execute('entries', $id) . '>';
} else {
$value = $column['label'];
......
......@@ -229,7 +229,7 @@ class Request extends AbstractRequest
$this->symfonyRequest->attributes->add(['page' => (int) \substr($query[$i], 5)]);
} elseif (\preg_match('/^(id_(\d+))$/', $query[$i])) { // result ID
$this->symfonyRequest->attributes->add(['id' => (int) \substr($query[$i], 3)]);
} elseif (\preg_match('/^(([a-zA-Z0-9-]+)_(.+))$/', $query[$i])) { // Additional URI parameters
} elseif (\preg_match('/^(([a-zA-Z0-9\-]+)_(.+))$/', $query[$i])) { // Additional URI parameters
$param = \explode('_', $query[$i], 2);
$this->symfonyRequest->attributes->add([$param[0] => $param[1]]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment