diff options
author | flop25 <flop25@piwigo.org> | 2013-10-24 17:51:28 +0000 |
---|---|---|
committer | flop25 <flop25@piwigo.org> | 2013-10-24 17:51:28 +0000 |
commit | 703c5f98393b46026b8f3cbe94171e87ea85f452 (patch) | |
tree | 43ee5cd14600a3a80986ecae2dd49c93aaf3f9ac | |
parent | 06f89b68e0b55b09feb28d5add4eefaa87a80e57 (diff) |
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/trunk@25120 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | profile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.php b/profile.php index 0bf6b3fe4..050459ccf 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') ; } |