cvs: docweb /www/rfc rfc-proposal-edit.php

From: Date: Mon, 23 Aug 2004 10:31:05 +0000
Subject: cvs: docweb /www/rfc rfc-proposal-edit.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-194@lists.php.net to get a copy of this message
vincent Mon Aug 23 06:31:05 2004 EDT Modified files: /docweb/www/rfc rfc-proposal-edit.php Log: making sure we don't add stuff that looks stupid http://cvs.php.net/diff.php/docweb/www/rfc/rfc-proposal-edit.php?r1=1.5&r2=1.6&ty=u Index: docweb/www/rfc/rfc-proposal-edit.php diff -u docweb/www/rfc/rfc-proposal-edit.php:1.5 docweb/www/rfc/rfc-proposal-edit.php:1.6 --- docweb/www/rfc/rfc-proposal-edit.php:1.5 Mon Aug 23 04:27:39 2004 +++ docweb/www/rfc/rfc-proposal-edit.php Mon Aug 23 06:31:05 2004 @@ -22,7 +22,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright Copyright (c) 1997-2004 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: rfc-proposal-edit.php,v 1.5 2004/08/23 08:27:39 vincent Exp $ + * @version $Id: rfc-proposal-edit.php,v 1.6 2004/08/23 10:31:05 vincent Exp $ */ /** @@ -258,15 +258,17 @@ } $timeline = $proposal->checkTimeLine(); - if ( - ($timeline === true) /*|| ($karma->has($_COOKIE['PEAR_USER'], 'pear.pepr.admin') && - ($proposal->user_handle != $_COOKIE['PEAR_USER'])))*/) { // !!! - $form->addElement('checkbox', 'next_stage', $next_stage_text); - } else { - $form->addElement('static', 'next_stage', '', - 'You can set &quot;' . @$next_stage_text - . '&quot; after ' - . make_utc_date($timeline) . '.'); + + if (!empty($next_stage_text)) { + if (($timeline === true) /*|| ($karma->has($_COOKIE['PEAR_USER'], 'pear.pepr.admin') && + ($proposal->user_handle != $_COOKIE['PEAR_USER'])))*/) { // !!! + $form->addElement('checkbox', 'next_stage', $next_stage_text); + } else { + $form->addElement('static', 'next_stage', '', + 'You can set &quot;' . @$next_stage_text + . '&quot; after ' + . make_utc_date($timeline) . '.'); + } } }

« previous php.doc.web (#194) next »