Revision: 2222
          http://mrbs.svn.sourceforge.net/mrbs/?rev=2222&view=rev
Author:   cimorrison
Date:     2011-12-31 10:45:20 +0000 (Sat, 31 Dec 2011)
Log Message:
-----------
Fixed another instance of date() being called before the timezone had been set, 
resulting in PHP warning

Modified Paths:
--------------
    mrbs/trunk/web/functions.inc

Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc        2011-12-30 10:28:57 UTC (rev 2221)
+++ mrbs/trunk/web/functions.inc        2011-12-31 10:45:20 UTC (rev 2222)
@@ -799,6 +799,9 @@
   $res = sql_query($sql);
   if (!$res || (sql_count($res) == 0))
   {
+    // We still need to set the timezone even if the query didn't
+    // return any results
+    mrbs_default_timezone_set($timezone);
     return;
   }
   else

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

Reply via email to