a few old session-variable leftovers

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-03-25 08:11:31 +01:00
parent 2b53c4b918
commit 9a9089cde3
3 changed files with 5 additions and 9 deletions

View File

@@ -145,11 +145,11 @@ class Settings
public static function IsInList($setting = null, $entry = null)
{
self::init();
$s = self::Get($setting);
if ($s == null) {
$svalue = self::Get($setting);
if ($svalue == null) {
return false;
}
$slist = explode(",", $s);
$slist = explode(",", $svalue);
return in_array($entry, $slist);
}

View File

@@ -50,11 +50,7 @@ class Response
header('Location: ' . $linker->getLink());
exit();
} elseif ($get_variables == null) {
if ($isRelative) {
$linker = new Linker($destination, $s);
} else {
$linker = new Linker($destination);
}
$linker = new Linker($destination);
header('Location: ' . $linker->getLink());
exit();
}