diff --git a/htdocs/admin/eventorganization.php b/htdocs/admin/eventorganization.php index bb1f0d87f15..f91f8ef13f1 100644 --- a/htdocs/admin/eventorganization.php +++ b/htdocs/admin/eventorganization.php @@ -368,7 +368,7 @@ if ($action == 'edit') { if ($resprod > 0) { print $product->getNomUrl(1); } elseif ($resprod < 0) { - setEventMessages(null, $object->errors, "errors"); + setEventMessages($product->error, $product->errors, "errors"); } } else { print getDolGlobalString($constname); diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 933f1f73687..4ab8f99029e 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -3420,7 +3420,7 @@ if ($action == 'editcss') { $maxfilesizearray = getMaxFileSizeArray(); $maxmin = $maxfilesizearray['maxmin']; if ($maxmin > 0) { - $texte .= ''; // MAX_FILE_SIZE must precede the field type=file + print ''; // MAX_FILE_SIZE must precede the field type=file } print ''; print '';