Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Classes/ServiceAPI/MyRadio_TrainingStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ public static function getAllAwardableTo(MyRadio_User $to, MyRadio_User $by = nu

$statuses = [];
foreach (self::getAll() as $status) {
if ((!$status->isAwardedTo($to))
if ($status->canAward($by)
&& $status->hasDependency($to)
&& $status->canAward($by)
&& (!$status->isAwardedTo($to))
Comment on lines +315 to +317
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason if you run canAward without the other tests it runs smoothly. Obviously I can't just remove the tests so I just put that one first so when that fails it doesn't test the other ones.

) {
$statuses[] = $status;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/Setup/checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function convertPHPSizeToBytes($sSize)
$ready = false;
$problems[] = 'You must be running at least PHP 7.1.';
} else {
$successes[] = 'You are running PHP '.php_version().'.';
$successes[] = 'You are running PHP '.phpversion().'.';
}

foreach ($required_modules as $module) {
Expand Down