else
$this->is_li_same_line = true;
- if (isset($this->was_li_same_line) && !$this->was_li_same_line)
+ if (!isset($this->was_li_same_line) || !$this->was_li_same_line)
$html = "<li";
else
$html = "";
// if has title and url = a with title
if (!empty($url)) {
- if (!$this->was_li_same_line)
+ if (!isset($this->was_li_same_line) || !$this->was_li_same_line)
$html .= '>';
$html .= $this->a($url, $text, $title, $filtered_classes);
elseif (!empty($title)) {
$html .= " title='$title'>$text";
} else {
- if (isset($this->was_li_same_line) && !$this->was_li_same_line)
+ if (!isset($this->was_li_same_line) || !$this->was_li_same_line)
$html .= '>';
$html .= "$text";
}