diff --git a/page.php b/page.php index 8cbf27e68..7f58ab3c4 100644 --- a/page.php +++ b/page.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/page.php,v $ -| $Revision: 1.6 $ -| $Date: 2007-01-01 12:00:42 $ -| $Author: e107steved $ +| $Revision: 1.7 $ +| $Date: 2007-01-17 13:36:57 $ +| $Author: mrpete $ | +----------------------------------------------------------------------------+ */ @@ -109,6 +109,7 @@ class pageClass $tmp = explode(".", e_QUERY); $this -> pageID = intval($tmp[0]); $this -> pageSelected = (isset($tmp[1]) ? intval($tmp[1]) : 0); + $this -> pageTitles = array(); if(defined("BULLET")) { $this -> bullet = ""; @@ -286,10 +287,10 @@ class pageClass function pageIndex() { - $itext = "

"; $count = 0; foreach($this -> pageTitles as $title) { + if (!$count) { $itext = "

"; } $itext .= $this -> bullet." ".($count == $this -> pageSelected ? $title : "".$title."")."
\n"; $count++; }