summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
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--;