--- duplicate.module.bkp	2010-04-17 23:33:09.000000000 +0200
+++ duplicate.module	2010-04-17 23:34:58.000000000 +0200
@@ -59,7 +59,7 @@
  * The arg() function may not be availble early in the bootstrap process,
  * so we reimplement it here.
  */
-function _duplicate_arg() {
+function _duplicate_arg($index = null) {
   static $arguments, $q;
 
   if (empty($arguments) || $q != $_GET['q']) {
@@ -67,6 +67,10 @@
     $q = $_GET['q'];
   }
 
+  if (!isset($index)) {
+    return $arguments; 
+  } 
+
   if (isset($arguments[$index])) {
     return $arguments[$index];
   }
