aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-10-25 17:41:18 +0000
committerflop25 <flop25@piwigo.org>2013-10-25 17:41:18 +0000
commit150dc87ac67ce4582a9bd3e265742908ea89a078 (patch)
tree4f38146a1c4115c4c953af90c087d31bf515d553 /profile.php
parent177dd74115df11cb4f197175e41c817a271929c7 (diff)
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
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php2
1 files changed, 1 insertions, 1 deletions
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') ;
}