aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/_cli.php
diff options
context:
space:
mode:
authorAlexandre Alapetite <alexandre@alapetite.fr>2019-11-08 23:11:35 +0100
committerGitHub <noreply@github.com>2019-11-08 23:11:35 +0100
commitf1d1d46651140961d6dc9436b3b9c66a2723f896 (patch)
tree70633ef58c95e861edbb7365b6afdb4df7a0005a /cli/_cli.php
parent6d596e9e54308297d423b23bf65338d62eebc415 (diff)
downloadfreshrss-f1d1d46651140961d6dc9436b3b9c66a2723f896.tar.gz
freshrss-f1d1d46651140961d6dc9436b3b9c66a2723f896.zip
Fix CLI bug regarding an empty user (#2646)
Fix https://github.com/FreshRSS/FreshRSS/issues/2644
Diffstat (limited to 'cli/_cli.php')
-rw-r--r--cli/_cli.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/_cli.php b/cli/_cli.php
index dec244bc3..4e1188428 100644
--- a/cli/_cli.php
+++ b/cli/_cli.php
@@ -37,7 +37,7 @@ function cliInitUser($username) {
if (FreshRSS_Context::$user_conf == null) {
fail('FreshRSS error: invalid configuration for user: ' . $username . "\n");
}
- new Minz_ModelPdo($username);
+ Minz_Session::_param('currentUser', $username);
return $username;
}