Skip to content

Commit

Permalink
Don't initialize OAuth handler in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Oct 28, 2024
1 parent af44dfb commit 9ab47d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion program/include/rcmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ protected function startup()
}

// load oauth manager
$this->oauth = rcmail_oauth::get_instance();
if (\PHP_SAPI != 'cli') {
$this->oauth = rcmail_oauth::get_instance();
}

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

0 comments on commit 9ab47d9

Please sign in to comment.