Skip to content

Commit 070b416

Browse files
committed
Fix fatal error in query.php
1 parent 22ceed3 commit 070b416

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

html/type/query.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,13 @@
183183
}
184184
// Get List of Players
185185
$count = 0;
186-
if (!empty($serverstatus->players)) {
187-
foreach ($serverstatus->players as $player) {
188-
$playerlist[$count]['Name'] = $player;
189-
$playerlist[$count]['Skin'] = "https://crafatar.com/avatars/". minecraftcache($player);
190-
$count++;
186+
if (function_exists("minecraftcache")) {
187+
if (!empty($serverstatus->players)) {
188+
foreach ($serverstatus->players as $player) {
189+
$playerlist[$count]['Name'] = $player;
190+
$playerlist[$count]['Skin'] = "https://crafatar.com/avatars/". minecraftcache($player);
191+
$count++;
192+
}
191193
}
192194
}
193195
}

0 commit comments

Comments
 (0)