related to #1693 fix error in form validation in picture modify

This commit is contained in:
Matthieu Leproux
2022-08-01 14:18:55 +02:00
parent e408b072fc
commit b837881f4f

View File

@@ -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'