mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-06 22:23:10 -04:00
typo update-or-create-user
This commit is contained in:
@@ -31,10 +31,12 @@ if (empty($options['user'])) {
|
||||
}
|
||||
|
||||
function strParam($name) {
|
||||
global $options;
|
||||
return isset($options[$name]) ? strval($options[$name]) : null;
|
||||
}
|
||||
|
||||
function intParam($name) {
|
||||
global $options;
|
||||
return isset($options[$name]) && ctype_digit($options[$name]) ? intval($options[$name]) : null;
|
||||
}
|
||||
|
||||
@@ -49,3 +51,5 @@ $values = array(
|
||||
'min_posts_per_rss' => intParam('min_posts_per_rss'),
|
||||
'max_posts_per_rss' => intParam('max_posts_per_rss'),
|
||||
);
|
||||
|
||||
$values = array_filter($values);
|
||||
|
||||
Reference in New Issue
Block a user