merge r25120 from trunk to branch 2.5

bug:2964 zero should be allowed for the recent period 

only the profile page didn't allowed it

git-svn-id: http://piwigo.org/svn/branches/2.5@25148 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
flop25
2013-10-25 17:41:18 +00:00
parent 177dd74115
commit 150dc87ac6
+1 -1
View File
@@ -133,7 +133,7 @@ function save_profile_from_post($userdata, &$errors)
// periods must be integer values, they represents number of days
if (!preg_match($int_pattern, $_POST['recent_period'])
or $_POST['recent_period'] <= 0)
or $_POST['recent_period'] < 0)
{
$errors[] = l10n('Recent period must be a positive integer value') ;
}