Skip to content
Snippets Groups Projects
Commit cdf52caf authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: verify if $_POST is not empty

parent e73e292d
Branches
Tags
No related merge requests found
......@@ -392,7 +392,9 @@ if (! empty($objcanvas->template_dir))
elseif ($action == 'edit')
{
$objcanvas->fetch($socid); // Reload object
if (! empty($_POST)) {
$objcanvas->assign_post(); // Assign POST data
}
$objcanvas->assign_values($action); // Set value for templates
$objcanvas->display_canvas($action); // Show template
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment