fixed questionable code about condition with strpos function - see CT#401

skala
Cristian Fasanando 15 years ago
parent 497a2d498a
commit 3c1ff37cb0
  1. 6
      main/wiki/diff.inc.php

@ -116,15 +116,15 @@
{
$content = array();
if ( strpos( $str, "\r\n" ) != false )
if ( strpos( $str, "\r\n" ) !== false )
{
$content = explode("\r\n", $str );
}
elseif ( strpos( $str, "\n" ) != false )
elseif ( strpos( $str, "\n" ) !== false )
{
$content = explode( "\n", $str );
}
elseif ( strpos( $str, "\r" ) != false )
elseif ( strpos( $str, "\r" ) !== false )
{
$content = explode( "\r", $str );
}

Loading…
Cancel
Save