cvs: pear /HTML_Progress2 Progress2.php
| From: | Laurent Laville | Date: | Mon, 01 Aug 2005 10:15:56 +0000 |
| Subject: | cvs: pear /HTML_Progress2 Progress2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33502@lists.php.net to get a copy of this message | ||
farell Mon Aug 1 06:15:56 2005 EDT
Modified files:
/pear/HTML_Progress2 Progress2.php
Log:
- moveStep may have zero as minimum value (step)
http://cvs.php.net/diff.php/pear/HTML_Progress2/Progress2.php?r1=1.7&r2=1.8&ty=u
Index: pear/HTML_Progress2/Progress2.php
diff -u pear/HTML_Progress2/Progress2.php:1.7 pear/HTML_Progress2/Progress2.php:1.8
--- pear/HTML_Progress2/Progress2.php:1.7 Mon Aug 1 04:14:22 2005
+++ pear/HTML_Progress2/Progress2.php Mon Aug 1 06:15:55 2005
@@ -17,7 +17,7 @@
* @author Laurent Laville <pear@laurent-laville.org>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Progress2.php,v 1.7 2005/08/01 08:14:22 farell Exp $
+ * @version CVS: $Id: Progress2.php,v 1.8 2005/08/01 10:15:55 farell Exp $
* @link http://pear.php.net/package/HTML_Progress2
*/
@@ -1028,7 +1028,7 @@
'expected' => 'integer',
'paramnum' => 1));
- } elseif ($step < 1) {
+ } elseif ($step < 0) {
return $this->raiseError(HTML_PROGRESS2_ERROR_INVALID_INPUT, 'error',
array('var' => '$step',
'was' => $step,