Revision: 1767
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1767&view=rev
Author:   jberanek
Date:     2011-01-28 20:11:37 +0000 (Fri, 28 Jan 2011)

Log Message:
-----------
* Removed a possible deprecation warning, SF #3165269.

Modified Paths:
--------------
    mrbs/trunk/web/internalconfig.inc.php

Modified: mrbs/trunk/web/internalconfig.inc.php
===================================================================
--- mrbs/trunk/web/internalconfig.inc.php       2011-01-28 09:52:37 UTC (rev 
1766)
+++ mrbs/trunk/web/internalconfig.inc.php       2011-01-28 20:11:37 UTC (rev 
1767)
@@ -251,7 +251,17 @@
  ********************************************************/
 
 // Disable magic quoting on database returns:
-set_magic_quotes_runtime(0);
+if (get_magic_quotes_runtime())
+{
+  if (version_compare(PHP_VERSION, '5.3.0') >= 0)
+  {
+    ini_set('magic_quotes_runtime', 0);
+  }
+  else
+  {
+    set_magic_quotes_runtime(false);
+  }
+}
 
 // Make sure notice errors are not reported, they can break mrbs code:
 $error_level = E_ALL ^ E_NOTICE;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to