summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/Console/Getopt.php2
1 files changed, 1 insertions, 1 deletions
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);