Use the new check_php_version function everywhere
[squirrelmail.git] / functions / mime.php
index 00e00219c0f625680cc06e98182a2ef4f02a8636..dbd1bbd5606c8c75b37f8690368c0c0cf4f52149 100644 (file)
@@ -325,7 +325,7 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
     global $startMessage, $username, $key, $imapServerAddress, $imapPort,
            $show_html_default, $has_unsafe_images, $sort;
 
-    if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+    if ( !check_php_version(4,1) ) {
         global $_GET;
     }
     if(isset($_GET['view_unsafe_images'])) {