Procházet zdrojové kódy

[Web] Fix stupid mistake, thanks to @ntimo!

andryyy před 5 roky
rodič
revize
20e289ce35
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      data/web/inc/functions.pushover.inc.php

+ 4 - 4
data/web/inc/functions.pushover.inc.php

@@ -36,7 +36,7 @@ function pushover($_action, $_data = null) {
           ));
           ));
           $_SESSION['return'][] = array(
           $_SESSION['return'][] = array(
             'type' => 'success',
             'type' => 'success',
-            'log' => array(__FUNCTION__, $_action, $_data, $_data),
+            'log' => array(__FUNCTION__, $_action, $_data),
             'msg' => 'pushover_settings_edited'
             'msg' => 'pushover_settings_edited'
           );
           );
           continue;
           continue;
@@ -56,7 +56,7 @@ function pushover($_action, $_data = null) {
         else {
         else {
           $_SESSION['return'][] = array(
           $_SESSION['return'][] = array(
             'type' => 'danger',
             'type' => 'danger',
-            'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
+            'log' => array(__FUNCTION__, $_action, $_data),
             'msg' => 'access_denied'
             'msg' => 'access_denied'
           );
           );
           continue;
           continue;
@@ -64,7 +64,7 @@ function pushover($_action, $_data = null) {
         if (!empty($senders_regex) && !is_valid_regex($senders_regex)) {
         if (!empty($senders_regex) && !is_valid_regex($senders_regex)) {
           $_SESSION['return'][] = array(
           $_SESSION['return'][] = array(
             'type' => 'danger',
             'type' => 'danger',
-            'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
+            'log' => array(__FUNCTION__, $_action, $_data),
             'msg' => 'Invalid regex'
             'msg' => 'Invalid regex'
           );
           );
           continue;
           continue;
@@ -120,7 +120,7 @@ function pushover($_action, $_data = null) {
         ));
         ));
         $_SESSION['return'][] = array(
         $_SESSION['return'][] = array(
           'type' => 'success',
           'type' => 'success',
-          'log' => array(__FUNCTION__, $_action, $_data, $_data),
+          'log' => array(__FUNCTION__, $_action, $_data),
           'msg' => 'pushover_settings_edited'
           'msg' => 'pushover_settings_edited'
         );
         );
       }
       }