Parcourir la source

WindykacjaPanel: small fix

Piotr Labudda il y a 11 ans
Parent
commit
16244614ed
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      SE/superedit-USERS2_WINDYKACJA_STATUS.php

+ 4 - 2
SE/superedit-USERS2_WINDYKACJA_STATUS.php

@@ -307,7 +307,8 @@ jQuery(document).ready(function () {
 									} else if ('sms' == $msgType) {
 										$msgStatusList  = WindykacjaStatsHelper::get_sms_status_info($user, $terminPlatnosci);
 									}
-									$msgStatusFirstKey = reset(array_keys($msgStatusList));
+									$msgStatusFirstKey = array_keys($msgStatusList);
+									$msgStatusFirstKey = reset($msgStatusFirstKey);
 									echo '"' . V::get('msg', '', $msgStatusList[$msgStatusFirstKey]) . '"';
 								echo '</p>';
 								$cmdStats['sent'] += 1;
@@ -344,7 +345,8 @@ jQuery(document).ready(function () {
 						} else if ('sms' == $msgType) {
 							$msgStatusList  = WindykacjaStatsHelper::get_sms_status_info($user, $terminPlatnosci);
 						}
-						$msgStatusFirstKey = reset(array_keys($msgStatusList));
+						$msgStatusFirstKey = array_keys($msgStatusList);
+						$msgStatusFirstKey = reset($msgStatusFirstKey);
 						$msgStatusInfo = $msgStatusList[$msgStatusFirstKey];
 						if ('mail' == $msgType) {
 							$ret = WindykacjaStatsHelper::update_mail_status($user, $msgStatusFirstKey);