Revision: 2212
http://mrbs.svn.sourceforge.net/mrbs/?rev=2212&view=rev
Author: cimorrison
Date: 2011-12-28 17:12:49 +0000 (Wed, 28 Dec 2011)
Log Message:
-----------
Fixed bug where date() was being called before the timezone had been set,
resulting in PHP warning
Modified Paths:
--------------
mrbs/trunk/web/standard_vars.inc.php
Modified: mrbs/trunk/web/standard_vars.inc.php
===================================================================
--- mrbs/trunk/web/standard_vars.inc.php 2011-12-24 09:27:00 UTC (rev
2211)
+++ mrbs/trunk/web/standard_vars.inc.php 2011-12-28 17:12:49 UTC (rev
2212)
@@ -12,6 +12,19 @@
$area = get_form_var('area', 'int');
$room = get_form_var('room', 'int');
+if (empty($area))
+{
+ $area = get_default_area();
+}
+
+if (empty($room))
+{
+ $room = get_default_room($area);
+}
+
+// Get the settings (resolution, etc.) for this area
+get_area_settings($area);
+
// If we don't know the right date then use today's date
if (empty($day) or empty($month) or empty($year))
{
@@ -35,17 +48,4 @@
}
}
-if (empty($area))
-{
- $area = get_default_area();
-}
-
-if (empty($room))
-{
- $room = get_default_room($area);
-}
-
-// Get the settings (resolution, etc.) for this area
-get_area_settings($area);
-
?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits