Skip to content

Commit

Permalink
Fixed issue: Notice in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 22, 2013
1 parent 69382b6 commit 0bf6ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -4569,7 +4569,7 @@ function flattenText($sTextToFlatten, $keepSpan=false, $bDecodeHTMLEntities=fals
}
// ~\R~u : see "What \R matches" and "Newline sequences" in http://www.pcre.org/pcre.txt - only available since PCRE 7.0
if ($bStripNewLines ){ // strip new lines
if (version_compare(substr(PCRE_VERSION,0,strpos(PCRE_VERSION,' ')),'7.0')>-1)
if (defined('PCRE_VERSION') && version_compare(substr(PCRE_VERSION,0,strpos(PCRE_VERSION,' ')),'7.0')>-1)
{
$sNicetext = preg_replace(array('~\R~u'),array(' '), $sNicetext);
}
Expand Down

0 comments on commit 0bf6ef1

Please sign in to comment.