Pārlūkot izejas kodu

misunderstood use of second array_shift command

tokul 20 gadi atpakaļ
vecāks
revīzija
0019c9a754
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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') {