Index: trunk/phase3/languages/LanguageConverter.php |
— | — | @@ -297,7 +297,7 @@ |
298 | 298 | $flags = array(); |
299 | 299 | |
300 | 300 | // process flag only if the flag is valid |
301 | | - if(! ( in_array($marked[0],$this->mFlags) && $marked[1]=='|' ) ) |
| 301 | + if(strlen($marked) < 2 || !(in_array($marked[0],$this->mFlags) && $marked[1]=='|' ) ) |
302 | 302 | return array($marked,array()); |
303 | 303 | |
304 | 304 | $tt = explode($this->mMarkup['flagsep'], $marked, 2); |