Jaap Marcus 2 лет назад
Родитель
Сommit
f3a23ef298
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/search/index.php

+ 1 - 1
web/search/index.php

@@ -21,7 +21,7 @@ if (empty($_GET["q"])) {
 $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(