dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2a3eeb
)
Only pop an array if it really is an array. BUG # 963554
author
Jens Frank
<jeluf@users.mediawiki.org>
Mon, 31 May 2004 13:02:19 +0000
(13:02 +0000)
committer
Jens Frank
<jeluf@users.mediawiki.org>
Mon, 31 May 2004 13:02:19 +0000
(13:02 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
50f0268
..
2dc092b
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-1573,7
+1573,7
@@
class Parser
$text .= "<" . str_replace( ">", ">", $x);
}
# Close off any remaining tags
- while (
$t = array_pop( $tagstack
) ) {
+ while (
is_array( $tagstack ) && ($t = array_pop( $tagstack )
) ) {
$text .= "</$t>\n";
if ( $t == "table" ) { $tagstack = array_pop( $tablestack ); }
}