mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-05-02 04:09:21 +02:00
spells page: Fixed errors when spells is not installed by admin.
This commit is contained in:
parent
bc2a6e2c01
commit
96802cb348
@ -94,6 +94,7 @@ if (user_logged_in() && is_admin($user_data)) {
|
||||
}
|
||||
// End loading spell list
|
||||
|
||||
if ($spells) {
|
||||
// Preparing data
|
||||
$configVoc = $config['vocations'];
|
||||
$types = array_keys($spells);
|
||||
@ -236,6 +237,13 @@ if ($getVoc !== 'all') {
|
||||
</table>
|
||||
<a href="#spells">Jump to top</a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<h1>Spells</h1>
|
||||
<p>Spells have currently not been loaded into the website by the server admin.</p>
|
||||
<?php
|
||||
}
|
||||
|
||||
/* Debug tests
|
||||
foreach ($spells as $type => $spells) {
|
||||
data_dump($spells, false, "Type: $type");
|
||||
|
Loading…
x
Reference in New Issue
Block a user