From ef8eb9220659913e912875792cd46c1b902ae85f Mon Sep 17 00:00:00 2001 From: Sander Roobol Date: Sun, 4 Aug 2002 19:00:53 +0000 Subject: [PATCH] Nuke notice (thanks to Arnaud Limbourg) --- pear/Console/Getopt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php index 1a38534ace..964421943f 100644 --- a/pear/Console/Getopt.php +++ b/pear/Console/Getopt.php @@ -80,7 +80,7 @@ class Console_Getopt { if ($long_options) { sort($long_options); } - if ($args[0]{0} != '-') { + if (isset($args[0]{0}) && $args[0]{0} != '-') { array_shift($args); } reset($args); -- 2.40.0