From 8ec890bdb7062c104e40452dad9c0b8a74fb2155 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 20 Jul 2022 16:15:08 +0200 Subject: [PATCH] related to #1693 no undefined variables in batch manager --- admin/batch_manager_unit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php index 50d463246..7304fbe40 100644 --- a/admin/batch_manager_unit.php +++ b/admin/batch_manager_unit.php @@ -222,10 +222,10 @@ SELECT 'FILE_SRC' => DerivativeImage::url(IMG_LARGE, $src_image), 'LEGEND' => $legend, 'U_EDIT' => get_root_url().'admin.php?page=photo-'.$row['id'], - 'NAME' => htmlspecialchars(@$row['name']), - 'AUTHOR' => htmlspecialchars(@$row['author']), + 'NAME' => htmlspecialchars(isset($row['name']) ? $row['name'] : ""), + 'AUTHOR' => htmlspecialchars(isset($row['author']) ? $row['author'] : ""), 'LEVEL' => !empty($row['level'])?$row['level']:'0', - 'DESCRIPTION' => htmlspecialchars(@$row['comment']), + 'DESCRIPTION' => htmlspecialchars(isset($row['comment']) ? $row['comment'] : ""), 'DATE_CREATION' => $row['date_creation'], 'TAGS' => $tag_selection, )