diff --git a/include/management/class_managementListing.inc b/include/management/class_managementListing.inc index a80f5f6028b519513da134b3b543c2b3e7f40b64..c9ed3b689376d4e0e451b369461e74d79a9b5aa8 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; }