From fd7e7021c7209eecffda07b95ad0c27ae3d6c701 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 5 Aug 2002 10:37:40 +0000 Subject: [PATCH] Fixed array_shift messing up array_slice.. --- pear/Console/Getopt.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php index 964421943f..15fe9efe34 100644 --- a/pear/Console/Getopt.php +++ b/pear/Console/Getopt.php @@ -82,6 +82,7 @@ class Console_Getopt { } if (isset($args[0]{0}) && $args[0]{0} != '-') { array_shift($args); + $args = array_values($args); } reset($args); while (list($i, $arg) = each($args)) { -- 2.50.1