Skip to content

Commit 9ab47d9

Browse files
committed
Don't initialize OAuth handler in CLI
1 parent af44dfb commit 9ab47d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

program/include/rcmail.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ protected function startup()
148148
}
149149

150150
// load oauth manager
151-
$this->oauth = rcmail_oauth::get_instance();
151+
if (\PHP_SAPI != 'cli') {
152+
$this->oauth = rcmail_oauth::get_instance();
153+
}
152154

153155
// run init method on all the plugins
154156
$this->plugins->init($this, $this->task);

0 commit comments

Comments
 (0)