diff --git a/www/artworks/edit.php b/www/artworks/edit.php index d99efa7f..aaa33a81 100644 --- a/www/artworks/edit.php +++ b/www/artworks/edit.php @@ -3,6 +3,7 @@ use function Safe\session_unset; session_start(); +/** @var ?\Exception $exception */ $exception = $_SESSION['exception'] ?? null; /** @var ?Artwork $artwork */ $artwork = $_SESSION['artwork'] ?? null; diff --git a/www/artworks/get.php b/www/artworks/get.php index b34c6af3..806eec46 100644 --- a/www/artworks/get.php +++ b/www/artworks/get.php @@ -4,6 +4,7 @@ use function Safe\session_unset; session_start(); $saved = HttpInput::Bool(SESSION, 'artwork-saved') ?? false; +/** @var ?\Exception $exception */ $exception = $_SESSION['exception'] ?? null; try{ @@ -33,6 +34,7 @@ try{ // because if the new status is 'approved' then it will hide the status form entirely, // which will be confusing. $oldStatus = $artwork->Status; + /** @var Artwork $artwork */ $artwork = $_SESSION['artwork'] ?? $artwork; $artwork->Status = $oldStatus; @@ -75,7 +77,7 @@ catch(Exceptions\InvalidPermissionsException){ Artist - Artist->Name) ?>Artist->AlternateNames) > 0){ ?> (A.K.A. , ', array_map('Formatter::EscapeHtml', $artwork->Artist->AlternateNames)) ?>)Artist->DeathYear !== null){ ?> (d. Artist->DeathYear ?>) (#Artist->ArtistId ?>) + Artist->Name) ?>Artist->AlternateNames ?? []) > 0){ ?> (A.K.A. , ', array_map('Formatter::EscapeHtml', $artwork->Artist->AlternateNames)) ?>)Artist->DeathYear !== null){ ?> (d. Artist->DeathYear ?>) (#Artist->ArtistId ?>) @@ -126,7 +128,7 @@ catch(Exceptions\InvalidPermissionsException){ PublicationYear !== null){ ?>

Page scans