mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
Minor: prevent for non numeric values (except all)
git-svn-id: http://piwigo.org/svn/branches/2.0@3519 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -86,6 +86,10 @@ if (isset($_GET['items_number']))
|
||||
{
|
||||
$page['items_number'] = $_GET['items_number'];
|
||||
}
|
||||
if ( !is_numeric($page['items_number']) and $page['items_number']!='all' )
|
||||
{
|
||||
$page['items_number'] = 10;
|
||||
}
|
||||
|
||||
$page['where_clauses'] = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user