]> granicus.if.org Git - php/commitdiff
Nuke notice (thanks to Arnaud Limbourg)
authorSander Roobol <sander@php.net>
Sun, 4 Aug 2002 19:00:53 +0000 (19:00 +0000)
committerSander Roobol <sander@php.net>
Sun, 4 Aug 2002 19:00:53 +0000 (19:00 +0000)
pear/Console/Getopt.php

index 1a38534acea52141feccce70e2239a856b86f635..964421943f27f70a3326d31a3de0dc84d88697f7 100644 (file)
@@ -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);