From da29afdf3ba7f0fb1874fd1348d95a6123fa5152 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sun, 8 Feb 2009 04:16:58 +0000 Subject: [PATCH] Fix PHP notice in force_balance_tags(), props beaulebens, fixes #9067 git-svn-id: http://svn.automattic.com/wordpress/trunk@10523 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 166dc5294d..4aaa7ca47f 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -848,7 +848,7 @@ function force_balance_tags( $text ) { // clear the shifter $tagqueue = ''; // Pop or Push - if ($regex[1][0] == "/") { // End Tag + if ( isset($regex[1][0]) && '/' == $regex[1][0] ) { // End Tag $tag = strtolower(substr($regex[1],1)); // if too many closing tags if($stacksize <= 0) {