Skip to content

Commit 1420dab

Browse files
authored
Fix hestiacp#3807 Search function (hestiacp#3833)
1 parent 50d5265 commit 1420dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/search/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$q = quoteshellarg($_GET["q"]);
2222
$u = quoteshellarg($_GET["u"]);
2323

24-
if ($_SESSION["userContext"] === "admin" && !isset($_SESSION["look"])) {
24+
if ($_SESSION["userContext"] === "admin" && $_SESSION["look"] == "") {
2525
if (!empty($_GET["u"])) {
2626
$user = $u;
2727
exec(

0 commit comments

Comments
 (0)