From: Sander Roobol Date: Sun, 4 Aug 2002 19:00:53 +0000 (+0000) Subject: Nuke notice (thanks to Arnaud Limbourg) X-Git-Tag: dev~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef8eb9220659913e912875792cd46c1b902ae85f;p=php Nuke notice (thanks to Arnaud Limbourg) --- 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);