diff options
| author | 2023-04-07 00:13:49 +0200 | |
|---|---|---|
| committer | 2023-04-07 00:13:49 +0200 | |
| commit | 6c01e4e7d6c177ac345c826059e585bffdd1d517 (patch) | |
| tree | 45bd8ee233a306881ed81447a3f56ca224fed538 /app/layout/header.phtml | |
| parent | 2118448133e327294ad2b69ed8736bc29879103d (diff) | |
Use typed access to request parameters (#5267)
* Use typed access to request parameters
This was a big source of mixed datatypes in many places
* Fix notifications
* Fix bookmarkAction
Diffstat (limited to 'app/layout/header.phtml')
| -rw-r--r-- | app/layout/header.phtml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/layout/header.phtml b/app/layout/header.phtml index dabdff051..f2330431b 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -24,18 +24,18 @@ <input type="hidden" name="a" value="<?= $param_a ?>" /> <?php } ?> - <?php $get = Minz_Request::param('get', ''); ?> - <?php if ($get != '') { ?> + <?php $get = Minz_Request::paramString('get'); ?> + <?php if ($get !== '') { ?> <input type="hidden" name="get" value="<?= $get ?>" /> <?php } ?> - <?php $order = Minz_Request::param('order', ''); ?> - <?php if ($order != '') { ?> + <?php $order = Minz_Request::paramString('order'); ?> + <?php if ($order !== '') { ?> <input type="hidden" name="order" value="<?= $order ?>" /> <?php } ?> - <?php $state = Minz_Request::param('state', ''); ?> - <?php if ($state != '') { ?> + <?php $state = Minz_Request::paramString('state'); ?> + <?php if ($state !== '') { ?> <input type="hidden" name="state" value="<?= $state ?>" /> <?php } ?> |
