1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

bugfixes: notices, pageIndex shouldn't create output if there's no text to send

This commit is contained in:
mrpete
2007-01-17 13:36:57 +00:00
parent 1c2d594c29
commit 09bf2b5869

View File

@@ -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 = "<img src='".THEME."images/".BULLET."' alt='' style='vertical-align: middle;' />";
@@ -286,10 +287,10 @@ class pageClass
function pageIndex()
{
$itext = "<br /><br />";
$count = 0;
foreach($this -> pageTitles as $title)
{
if (!$count) { $itext = "<br /><br />"; }
$itext .= $this -> bullet." ".($count == $this -> pageSelected ? $title : "<a href='".e_SELF."?".$this -> pageID.".".$count."'>".$title."</a>")."<br />\n";
$count++;
}