summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2017-06-21 22:01:09 +0100
committerLuke Bratch <luke@bratch.co.uk>2017-06-21 22:01:09 +0100
commit6af4dfdfc7f60881aa826a1a3da91f108427df6d (patch)
tree24aff9f9e1dc1ad1f23fa09c28b91a5d1e02a545 /index.php
parent53cf517409b23428b8d64eb578ac1faa59bf83be (diff)
Fix incorrect variable name
Diffstat (limited to 'index.php')
-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--;