cvs: pearweb /public_html/pepr index.php

From: Date: Sun, 07 Jun 2009 02:49:46 +0000
Subject: cvs: pearweb /public_html/pepr index.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8487@lists.php.net to get a copy of this message
clockwerx Sun Jun 7 02:49:46 2009 UTC Modified files: /pearweb/public_html/pepr index.php Log: Bug #16296 Undefined variable in pepr/index.php http://cvs.php.net/viewvc.cgi/pearweb/public_html/pepr/index.php?r1=1.11&r2=1.12&diff_format=u Index: pearweb/public_html/pepr/index.php diff -u pearweb/public_html/pepr/index.php:1.11 pearweb/public_html/pepr/index.php:1.12 --- pearweb/public_html/pepr/index.php:1.11 Sun May 17 05:32:49 2009 +++ pearweb/public_html/pepr/index.php Sun Jun 7 02:49:46 2009 @@ -19,7 +19,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: index.php,v 1.11 2009/05/17 05:32:49 clockwerx Exp $ + * @version $Id: index.php,v 1.12 2009/06/07 02:49:46 clockwerx Exp $ */ /** @@ -67,15 +67,18 @@ $finishedCounter = 0; +$lastChar = null; foreach ($proposals as $proposal) { $status = $proposal->getStatus(); $status_true = $proposal->getStatus(true); + if ($status != $last_status) { if ($last_status !== false) { echo "</ul>\n"; echo "<p>"; echo "</p>\n\n"; } + echo "<div style=\"float: right\"><a href='/feeds/pepr_".$status.".rss'><img src=\"/gifs/feed.png\" width=\"16\" height=\"16\" alt=\"Aggregate this\" border=\"0\" /></a></div>"; echo '<h2 name="' . $status . '" id="'; echo $status . '">'; @@ -84,11 +87,12 @@ echo "<ul>\n"; $last_status = $status; } + $prpCat = $proposal->pkg_category; - if ($selectStatus != '' && (!isset($lastChar) || $lastChar != $prpCat{0})) { + if ($selectStatus != '' && (empty($lastChar) || $lastChar != $prpCat{0})) { $lastChar = $prpCat{0}; echo "</ul>\n"; - echo "<h3><a id=\"$lastchar\">$lastChar</a></h3>\n"; + echo "<h3><a id=\"$lastChar\">$lastChar</a></h3>\n"; echo "<ul>\n"; } if ($status == 'finished' && $selectStatus != 'finished') { @@ -121,6 +125,7 @@ echo ' by '; echo make_link('/user/' . htmlspecialchars($proposal->user_handle), htmlspecialchars($users[$proposal->user_handle]['name'])); + switch ($status) { case 'proposal': echo ' &nbsp;(<a href="pepr-comments-show.php?id=' . $proposal->id;

« previous php.pear.core (#8487) next »