Changeset:
506fd1d7a13e
https://sourceforge.net/p/mrbs/hg-code/ci/506fd1d7a13e13babeedb29b41e028f8d0aab17e
Author:
Campbell Morrison <[email protected]>
Date:
Thu Oct 20 17:14:56 2016 +0100
Log message:
Added some earlier checking for $timezone
diffstat:
web/functions.inc | 2 ++
web/internalconfig.inc.php | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r 8f33c1da41a3 -r 506fd1d7a13e web/functions.inc
--- a/web/functions.inc Thu Oct 20 16:35:24 2016 +0100
+++ b/web/functions.inc Thu Oct 20 17:14:56 2016 +0100
@@ -42,6 +42,8 @@
}
else
{
+ // This should have been picked up before now, but just in case ...
+
// We don't just use a default default timezone such as UTC because then
// people would start running into DST problems with their bookings.
$message = 'MRBS configuration error: $timezone has not been set.';
diff -r 8f33c1da41a3 -r 506fd1d7a13e web/internalconfig.inc.php
--- a/web/internalconfig.inc.php Thu Oct 20 16:35:24 2016 +0100
+++ b/web/internalconfig.inc.php Thu Oct 20 17:14:56 2016 +0100
@@ -136,6 +136,12 @@
* Checking
********************************************************/
+// Check that $timezone has been set
+if (!isset($timezone))
+{
+ die('MRBS configuration error: $timezone has not been set.');
+}
+
// Do some consistency checking of user settings from config.inc.php
if ($enable_periods)
{
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits