Changeset 2664

Show
Ignore:
Timestamp:
05/07/2008 03:16:00 PM (7 months ago)
Author:
Geert
Message:

Follow-up to r2635. It is nicer to do it this way because now $html_found always is a boolean instead of an integer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/text.php

    r2635 r2664  
    300300 
    301301                // The following regexes only need to be executed if the string contains html 
    302                 if (($html_found = strpos($str, '<')) !== FALSE) 
     302                if ($html_found = (strpos($str, '<') !== FALSE)) 
    303303                { 
    304304                        // Elements that should not be surrounded by p tags