diff --git a/app/recordings/recording_edit.php b/app/recordings/recording_edit.php index bf43220eee..2268fbc85c 100644 --- a/app/recordings/recording_edit.php +++ b/app/recordings/recording_edit.php @@ -272,7 +272,7 @@ echo "
".$text['title-edit']."
\n"; echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','style'=>'margin-right: 15px;','link'=>'recordings.php']); - if (permission_exists('recording_delete')) { + if (permission_exists('recording_delete') && !empty($recording_uuid) && is_uuid($recording_uuid)) { echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'name'=>'btn_delete','style'=>'margin-right: 15px;','onclick'=>"modal_open('modal-delete','btn_delete');"]); } echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'id'=>'btn_save']); @@ -433,7 +433,9 @@ echo ""; echo "

"; - echo "\n"; + if (!empty($recording_uuid) && is_uuid($recording_uuid)) { + echo "\n"; + } echo "\n"; echo ""; @@ -441,4 +443,4 @@ //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file