Skip to content

Commit

Permalink
Fixed error when calling shell script from browser (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caprico85 authored and fballiano committed Jan 13, 2023
1 parent 7751fde commit 1990768
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shell/abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ protected function _applyPhpVariables()
*/
protected function _parseArgs()
{
if (empty($_SERVER['argv'])) {
return $this;
}

$current = null;
foreach ($_SERVER['argv'] as $arg) {
$match = [];
Expand Down

0 comments on commit 1990768

Please sign in to comment.