diff --git a/characterprofile.php b/characterprofile.php index be024dc..1bf248d 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -376,41 +376,43 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { FROM player_storage WHERE `player_id` = {$user_id} "); - foreach ($config['quests'] as $cquest) { - $totalquests = $totalquests + 1; - foreach ($sqlquests as $dbquest) { - if ($cquest[0] == $dbquest['key'] && $cquest[1] == $dbquest['value']) { - $completedquests = $completedquests + 1; + if (isset($config['quests']) && !empty($config['quests'])) { + foreach ($config['quests'] as $cquest) { + $totalquests = $totalquests + 1; + foreach ($sqlquests as $dbquest) { + if ($cquest[0] == $dbquest['key'] && $cquest[1] == $dbquest['value']) { + $completedquests = $completedquests + 1; + } } - } - if ($cquest[3] == 1) { - if ($completedquests != 0) { - if ($firstrun == 1): ?> - Quest progression - - - - - - - - + if ($cquest[3] == 1) { + if ($completedquests != 0) { + if ($firstrun == 1): ?> + Quest progression +
Quest:progression:
+ + + + + + + + + + + + - - - - -
Quest:progression:
+ % +
+
- % -
-