소스 검색

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') {