From b837881f4fb2cfaa3dfd93cb1eeeae77709d8327 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 1 Aug 2022 14:18:55 +0200 Subject: [PATCH] related to #1693 fix error in form validation in picture modify --- admin/picture_modify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 683d184d5..b9dd9df97 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -258,14 +258,14 @@ $template->assign( 'AUTHOR' => htmlspecialchars( isset($_POST['author']) ? stripslashes($_POST['author']) - : "" + : (empty($row['author']) ? '' : $row['author']) ), 'DATE_CREATION' => $row['date_creation'], 'DESCRIPTION' => htmlspecialchars( isset($_POST['description']) ? - stripslashes($_POST['description']) : ""), + stripslashes($_POST['description']) : (empty($row['comment']) ? '' : $row['comment'])), 'F_ACTION' => get_root_url().'admin.php'