浏览代码

misunderstood use of second array_shift command

tokul 20 年之前
父节点
当前提交
0019c9a754
共有 1 个文件被更改,包括 1 次插入1 次删除
  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') {