diff --git a/src/Skyroom/Controller/SkyroomController.php b/src/Skyroom/Controller/SkyroomController.php index 8f2f61d..4cbdb40 100644 --- a/src/Skyroom/Controller/SkyroomController.php +++ b/src/Skyroom/Controller/SkyroomController.php @@ -96,7 +96,7 @@ function parseRequest($do, $wp) $this->eventRepository->save($event); $title = __('Error entering class', 'skyroom'); - $message = __('Seems there is a problem on our side server. Please contact support to resolve issue.', 'skyroom'); + $message = __('Seems there is a problem on our side. Please contact support to resolve issue.', 'skyroom'); wp_die('

' . $title . '

' . '

' . $message . '

', $title); } } diff --git a/src/Skyroom/Tasks/SyncTask.php b/src/Skyroom/Tasks/SyncTask.php index b98926c..b46d5ce 100644 --- a/src/Skyroom/Tasks/SyncTask.php +++ b/src/Skyroom/Tasks/SyncTask.php @@ -219,17 +219,14 @@ public function syncEnrolls() continue; } - $userIds = []; foreach ($usersResult as $i => $userResult) { - if (is_numeric($userResult)) { - $userIds[] = $roomUsersMap[$roomId][$i]['user_id']; - } else { + if (!is_numeric($userResult)) { $this->addMessage( sprintf( __('Error in syncing room(%d) user(%d): %s', 'skyroom'), $roomId, $roomUsersMap[$roomId][$i]['user_id'], - $usersResult + $userResult ), 'error', !$error