aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationSetter.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-07-23 09:28:58 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-07-23 09:28:58 +0200
commit28dd652228b8e863cddd3d03613c586c01796204 (patch)
treed6d83d44beb2a31095ca301723fe7ab79ee87e37 /app/Models/ConfigurationSetter.php
parentfa76e863c5622609b944542b0255c30f2f67c97e (diff)
parent1ad36c420e774d6f66b6a7ecf5b37ed1103ea464 (diff)
Merge pull request #914 from marienfressinaud/679-create-accounts
Add account creation feature. To be tested for 1.1.2-beta
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
-rw-r--r--app/Models/ConfigurationSetter.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php
index 4bd29ecb0..d7378d4d8 100644
--- a/app/Models/ConfigurationSetter.php
+++ b/app/Models/ConfigurationSetter.php
@@ -352,6 +352,9 @@ class FreshRSS_ConfigurationSetter {
'min' => 0,
'max' => $max_small_int,
),
+ 'max_registrations' => array(
+ 'min' => 0,
+ ),
);
foreach ($values as $key => $value) {
@@ -361,8 +364,8 @@ class FreshRSS_ConfigurationSetter {
$limits = $limits_keys[$key];
if (
- (!isset($limits['min']) || $value > $limits['min']) &&
- (!isset($limits['max']) || $value < $limits['max'])
+ (!isset($limits['min']) || $value >= $limits['min']) &&
+ (!isset($limits['max']) || $value <= $limits['max'])
) {
$data['limits'][$key] = $value;
}