Signed-off-by: Banana <mail@bananas-playground.net>
<?php
if(!empty($TemplateData['editFields'])) {
$_entry = '';
- if(!empty($TemplateData['editData'])) {
+ if(isset($TemplateData['editData']['id'])) {
$_entry = $TemplateData['editData']['id'];
?>
<h3 class="uk-h3"><?php echo $I18n->t('manageentry.updateentry'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
<?php
$existingFieldValue = array();
-if(isset($TemplateData['editData'][$field['identifier']])) {
+if(!empty($TemplateData['editData'][$field['identifier']])) {
$existingFieldValue = $TemplateData['editData'][$field['identifier']];
}
?>