if analysis frame doesn't exist revert back to capt

pull/3246/head
Isaac Connor 2021-05-03 15:18:35 -04:00
parent 80d2f9f098
commit d92c95a420
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,10 @@ if ( !$imageData ) {
$show = 'capt';
if (isset($_REQUEST['show']) && in_array($_REQUEST['show'], array('capt', 'anal'))) {
$show = $_REQUEST['show'];
} else if ( $imageData['hasAnalImage'] ) {
if ($show == 'anal' and ! $imageData['hasAnalImage']) {
$show = 'capt';
}
} else if ($imageData['hasAnalImage']) {
$show = 'anal';
}