aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-08-19 16:19:03 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-08-19 16:19:03 +0200
commitd0281a9f35fa5d4c607bac26ebabd43da6eb2ce2 (patch)
tree08b9f7897d151a01b9575d8a01a4f62a882636f5
parent2fa8fdd28e058c818881a593df59700dcb96becd (diff)
typo update-or-create-user
-rw-r--r--cli/_update-or-create-user.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/_update-or-create-user.php b/cli/_update-or-create-user.php
index 45bfee2cf..c7f1008cd 100644
--- a/cli/_update-or-create-user.php
+++ b/cli/_update-or-create-user.php
@@ -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);