From 04864c4ed8ce0ef749131490ddd6d7de65b0a09e Mon Sep 17 00:00:00 2001 From: Thibault Dockx <thibault.dockx@fusiondirectory.org> Date: Mon, 24 Feb 2025 17:10:38 +0000 Subject: [PATCH] file - class management listing to php82 management listing to php 82 --- include/management/class_managementListing.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/management/class_managementListing.inc b/include/management/class_managementListing.inc index a80f5f602..c9ed3b689 100755 --- a/include/management/class_managementListing.inc +++ b/include/management/class_managementListing.inc @@ -293,7 +293,7 @@ class managementListing if ($action == 'ROOT') { $this->setBase(key($this->bases)); } elseif ($action == 'BACK') { - $parentBase = preg_replace('/^[^,]+,/', '', $this->base); + $parentBase = preg_replace('/^[^,]+,/', '', (string) $this->base); $this->tryAndSetBase($parentBase); } elseif ($action == 'HOME') { $ui = get_userinfo(); @@ -472,7 +472,7 @@ class managementListing } } elseif (isset($_REQUEST['dn']) && preg_match('/^listing_([[:alnum:]_\.]+)$/', $key, $m)) { /* Pre-render list to init things if a dn is gonna be opened on first load */ - $dn = urldecode($_REQUEST['dn']); + $dn = urldecode((string) $_REQUEST['dn']); $this->focusDn($dn); $this->render(); @@ -516,8 +516,8 @@ class managementListing } } - if (strpos($result['action'], '_') !== FALSE) { - list($result['action'], $result['subaction']) = explode('_', $result['action'], 2); + if (str_contains((string) $result['action'], '_')) { + list($result['action'], $result['subaction']) = explode('_', (string) $result['action'], 2); } return $result; } -- GitLab