summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend
diff options
context:
space:
mode:
authorChristian Hofmaier2018-12-04 16:56:28 +0100
committerChristian Hofmaier2018-12-04 16:56:28 +0100
commite327bcd7ee111c7ca296e60ba3579964285fe742 (patch)
treea6f13e1e12d0c143418e0c59a656bc2d95f438c7 /modules-available/locationinfo/frontend
parent[locationinfo] Prevent undefined index access (diff)
downloadslx-admin-e327bcd7ee111c7ca296e60ba3579964285fe742.tar.gz
slx-admin-e327bcd7ee111c7ca296e60ba3579964285fe742.tar.xz
slx-admin-e327bcd7ee111c7ca296e60ba3579964285fe742.zip
[locationinfo] fix panel being closed all day long
Diffstat (limited to 'modules-available/locationinfo/frontend')
-rw-r--r--modules-available/locationinfo/frontend/frontendscript.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/frontend/frontendscript.js b/modules-available/locationinfo/frontend/frontendscript.js
index b5f59792..efe4d5b6 100644
--- a/modules-available/locationinfo/frontend/frontendscript.js
+++ b/modules-available/locationinfo/frontend/frontendscript.js
@@ -15,7 +15,7 @@ function IsOpen(date, room) {
openDate.setMinutes(tmp[i].MinutesOpen);
closeDate.setHours(tmp[i].HourClose);
closeDate.setMinutes(tmp[i].MinutesClose);
- if (openDate < date && closeDate > date) {
+ if (openDate <= date && closeDate > date) {
return true;
}
}