Check to see if o is set in pagination header to fix php undefined variable error

This commit is contained in:
johnnyq 2023-02-24 20:44:13 -05:00
parent 6f0017d90b
commit bebd873d57
1 changed files with 3 additions and 1 deletions

View File

@ -27,11 +27,13 @@ if (isset($_GET['o'])) {
$o = "DESC";
$disp = "ASC";
}
} else {
} elseif(isset($o)) {
if ($o == "ASC") {
$disp = "DESC";
//$o = "ASC";
} else {
$disp = "ASC";
//$o = "DESC";
}
}