From 6af4dfdfc7f60881aa826a1a3da91f108427df6d Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 21 Jun 2017 22:01:09 +0100 Subject: Fix incorrect variable name --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 27f88a6..06890cb 100644 --- a/index.php +++ b/index.php @@ -47,7 +47,7 @@ foreach ($divs as $div) { // If we get a min without a max, we're probably in night mode (only min and current listed) if ($span->nodeValue == "Max") { $maxcount++; - } else if ($span->nodeValue == "Min" && $max < 1) { + } else if ($span->nodeValue == "Min" && $maxcount < 1) { $nightmode = 1; } else if ($span->nodeValue == "Min") { $maxcount--; -- cgit v1.2.3