Misc fixes and tweaks

This commit is contained in:
Timothy Warren 2020-08-25 15:11:08 -04:00
parent 980e2726c5
commit 69991a126a
5 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## Version 5.1
* Added session check, so when coming back to a page, if the session is expired, the page will refresh.
* Updated logging config so that much fewer, much smaller files are generated.
## Version 5
* Updated PHP requirement to 7.4
* Added anime watching history view

View File

@ -26,7 +26,7 @@
</head>
<body class="<?= $escape->attr($url_type) ?> list">
<?php include 'setup-check.php' ?>
<header tabindex="0">
<header>
<?php
include 'main-menu.php';
if(isset($message) && is_array($message))

View File

@ -55,7 +55,7 @@ use Aviat\AnimeClient\API\Kitsu;
$character = $component->character(
$item['character']['canonicalName'],
$url->generate('character', ['slug' => $item['character']['slug']]),
$helper->picture(getLocalImg($item['character']['image']['original']))
$helper->picture(getLocalImg($item['character']['image']['original'] ?? null))
);
$medias = [];
foreach ($item['media'] as $sid => $series)

View File

@ -119,7 +119,7 @@ final class Kitsu {
break;
default:
continue 2;
// Do Nothing
}
}
@ -328,7 +328,7 @@ final class Kitsu {
}
}
// Don't return the canonical titles
// Don't return the canonical title
array_shift($valid);
return $valid;
@ -356,7 +356,7 @@ final class Kitsu {
}
}
// Don't return the canonical titles
// Don't return the canonical title
array_shift($valid);
return $valid;