Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Hossein-s committed Apr 23, 2020
1 parent b7cf6b8 commit 09943e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Skyroom/Controller/SkyroomController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<h1>' . $title . '</h1>' . '<p>' . $message . '</p>', $title);
}
}
Expand Down
7 changes: 2 additions & 5 deletions src/Skyroom/Tasks/SyncTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09943e6

Please sign in to comment.