mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-05-02 20:29: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
|
// End loading spell list
|
||||||
|
|
||||||
|
if ($spells) {
|
||||||
// Preparing data
|
// Preparing data
|
||||||
$configVoc = $config['vocations'];
|
$configVoc = $config['vocations'];
|
||||||
$types = array_keys($spells);
|
$types = array_keys($spells);
|
||||||
@ -236,6 +237,13 @@ if ($getVoc !== 'all') {
|
|||||||
</table>
|
</table>
|
||||||
<a href="#spells">Jump to top</a>
|
<a href="#spells">Jump to top</a>
|
||||||
<?php
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<h1>Spells</h1>
|
||||||
|
<p>Spells have currently not been loaded into the website by the server admin.</p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
/* Debug tests
|
/* Debug tests
|
||||||
foreach ($spells as $type => $spells) {
|
foreach ($spells as $type => $spells) {
|
||||||
data_dump($spells, false, "Type: $type");
|
data_dump($spells, false, "Type: $type");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user