Skip to content

Commit

Permalink
Fix CLI bootstrap problem
Browse files Browse the repository at this point in the history
  • Loading branch information
JKingweb committed Feb 11, 2021
1 parent fa6d641 commit 3ba82b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arsse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
ini_set("max_execution_time", "0");

if (\PHP_SAPI === "cli") {
// initialize the CLI; this automatically handles --help and --version
// initialize the CLI; this automatically handles --help and --version else {
Arsse::$obj = new Factory;
$cli = new CLI;
// handle other CLI requests; some do not require configuration
$exitStatus = $cli->dispatch();
Expand Down

0 comments on commit 3ba82b7

Please sign in to comment.