Explorar el Código

misunderstood use of second array_shift command

tokul hace 20 años
padre
commit
0019c9a754
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      plugins/listcommands/functions.php

+ 1 - 1
plugins/listcommands/functions.php

@@ -39,7 +39,7 @@ function plugin_listcommands_menu_do() {
         /* proto = {mailto,href} */
         $aActions = array_keys($actions);
         $proto = array_shift($aActions);
-        $act   = array_shift($aActions);
+        $act   = array_shift($actions);
 
         if ($proto == 'mailto') {