Revision: 1181
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1181&view=rev
Author:   cimorrison
Date:     2009-08-28 15:09:35 +0000 (Fri, 28 Aug 2009)

Log Message:
-----------
Corrected use of version_compare()

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

Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc        2009-08-28 14:01:59 UTC (rev 1180)
+++ mrbs/trunk/web/functions.inc        2009-08-28 15:09:35 UTC (rev 1181)
@@ -385,7 +385,7 @@
 // that the optional second parameter is only available from PHP 5.3.0 onwards.
 function mrbs_nl2br($string)
 {
-  if (function_exists('version_compare') && version_compare(PHP_VERSION, 
'5.3.0', 'ge') === 1)
+  if (function_exists('version_compare') && version_compare(PHP_VERSION, 
'5.3.0', 'ge'))
   {
     return nl2br($string, IS_XHTML);
   }

Modified: mrbs/trunk/web/functions_mail.inc
===================================================================
--- mrbs/trunk/web/functions_mail.inc   2009-08-28 14:01:59 UTC (rev 1180)
+++ mrbs/trunk/web/functions_mail.inc   2009-08-28 15:09:35 UTC (rev 1181)
@@ -100,7 +100,7 @@
   // multi-byte character sets was only introduced in PHP 5.0.0.   So rather 
than
   // trying to do anything complicated for PHP 4, we'll just do the decode if
   // we're running PHP 5 or higher.   Sorry, PHP 4 users!
-  if (function_exists('version_compare') && version_compare(PHP_VERSION, 
'5.0.0', 'ge') === 1)
+  if (function_exists('version_compare') && version_compare(PHP_VERSION, 
'5.0.0', 'ge'))
   {
     $mailperiod = html_entity_decode($mailperiod, ENT_COMPAT, 
get_mail_charset());
   }


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to