Avoid PHP notice on blank chat lines. props SergeyBiryukov. see #23625

git-svn-id: https://develop.svn.wordpress.org/trunk@23880 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2013-03-30 17:04:08 +00:00
parent d26bddce5c
commit 3f1f5162b6

View File

@@ -520,6 +520,8 @@ function get_content_chat( &$content, $remove = false ) {
$author = $time = '';
if ( ! empty( $lines[$index + 1] ) && ! preg_match( $delimiter_regex, $lines[$index + 1] ) )
break;
else
continue;
}
$matches = array();