Skip to content

Commit

Permalink
Fix glaring oops for web environments
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xo committed Oct 17, 2022
1 parent 50cbcd8 commit 4169eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dir2cast.php
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ class SettingsHandler
*/
public static function getopt($argv_in, $short_options, $long_options)
{
if($argv_in != $GLOBALS['argv'])
if(isset($GLOBALS['argv']) && $argv_in != $GLOBALS['argv'])
{
return fake_getopt($argv_in, $short_options, $long_options);
}
Expand Down

0 comments on commit 4169eb0

Please sign in to comment.