From: Gabriel Wicke Date: Thu, 13 May 2004 12:08:02 +0000 (+0000) Subject: Silenced this, $token["pos"] was undefined when parsing '''hi'''''hi'' which created... X-Git-Tag: 1.3.0beta1~78 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=4f9f8df8523aa728451cf530395f445a54d5fd6f;p=lhc%2Fweb%2Fwiklou.git Silenced this, $token["pos"] was undefined when parsing '''hi'''''hi'' which created a notice. Output is fine, so silencing it should be ok. --- diff --git a/includes/Parser.php b/includes/Parser.php index 79aa4e7244..e488b50abd 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -729,7 +729,7 @@ class Parser } elseif ( $state["strong"] !== false ) { $s .= ""; $state["strong"] = FALSE; - $state["em"] = $token["pos"]; + $state["em"] = @$token["pos"]; } else { # not $em and not $strong $s .= ""; $state["strong"] = $state["em"] = isset($token["pos"]) ? $token["pos"] : true;