Explorar o código

WindykacjaPanel: small fix

Piotr Labudda %!s(int64=11) %!d(string=hai) anos
pai
achega
16244614ed
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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);