cvs: php-bugs-web / search.php

From: Date: Thu, 05 Oct 2006 12:59:54 +0000
Subject: cvs: php-bugs-web / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32923@lists.php.net to get a copy of this message
tony2001 Thu Oct 5 12:59:54 2006 UTC Modified files: /php-bugs-web search.php Log: $limit cannot be < 0 http://cvs.php.net/viewvc.cgi/php-bugs-web/search.php?r1=1.65&r2=1.66&diff_format=u Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.65 php-bugs-web/search.php:1.66 --- php-bugs-web/search.php:1.65 Thu Oct 5 12:57:01 2006 +++ php-bugs-web/search.php Thu Oct 5 12:59:54 2006 @@ -114,7 +114,7 @@ } $begin = (int)$begin; - if ($limit != 'All' && !(int)$limit) $limit = 30; + if (($limit != 'All' && !(int)$limit) || (int)$limit < 0 ) $limit = 30; if($limit!='All' && $limit > 0) $query .= " LIMIT $begin,".(int)$limit;

« previous php.mirrors (#32923) next »