Index: formatting.php
===================================================================
--- formatting.php	(revision 10518)
+++ formatting.php	(working copy)
@@ -848,7 +848,7 @@
 		// 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) {
