Skip to content

Commit

Permalink
Fix #3807 Search function (#3833)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapmarcus committed Jul 23, 2023
1 parent 50d5265 commit 1420dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
$q = quoteshellarg($_GET["q"]);
$u = quoteshellarg($_GET["u"]);

if ($_SESSION["userContext"] === "admin" && !isset($_SESSION["look"])) {
if ($_SESSION["userContext"] === "admin" && $_SESSION["look"] == "") {
if (!empty($_GET["u"])) {
$user = $u;
exec(
Expand Down

0 comments on commit 1420dab

Please sign in to comment.