From 150dc87ac67ce4582a9bd3e265742908ea89a078 Mon Sep 17 00:00:00 2001 From: flop25 Date: Fri, 25 Oct 2013 17:41:18 +0000 Subject: 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 --- profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.php b/profile.php index 741fcc40e..cff252565 100644 --- a/profile.php +++ b/profile.php @@ -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') ; } -- cgit v1.2.3