Преглед изворни кода

Fix in the notifications API

Iñigo Valentin пре 8 година
родитељ
комит
437cc67dc5
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      www/API/v3/notifications.php

+ 2 - 3
www/API/v3/notifications.php

@@ -69,14 +69,13 @@
      * request parameter keyed 'target'
      * 
      * @since 3.0.0
-     * @param array $get Optional. Array with the request parameters. Default
-     *                   is $_GET.
+     * @param array $get Array with the request parameters.
      * @return string 'all' or 'gm' if it was passed as the 'target' GET
      *                parameter. 'gm' if there was no 'target' parameter or
      *                null if some invalid value was passed as the 'target'
      *                parameter.
      */
-    function get_target($get = $_GET){
+    function get_target($get){
         $target = $get[GET_TARGET];
         if (strlen($target) < 1){
             return DEF_TARGET;