diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index b5bd94f0c2e..8b5f757ad0e 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -2294,6 +2294,7 @@ if ($action == 'create') {
print $langs->trans('OutstandingBill');
print '
';
$arrayoutstandingbills = $soc->getOutstandingBills();
+ print ($arrayoutstandingbills['opened'] > $soc->outstanding_limit ? img_warning() : '');
print price($arrayoutstandingbills['opened']).' / ';
print price($soc->outstanding_limit, 0, $langs, 1, - 1, - 1, $conf->currency);
print ' | ';
diff --git a/htdocs/core/actions_sendmails.inc.php b/htdocs/core/actions_sendmails.inc.php
index b4e583387c9..83a823edeb2 100644
--- a/htdocs/core/actions_sendmails.inc.php
+++ b/htdocs/core/actions_sendmails.inc.php
@@ -345,7 +345,7 @@ if (($action == 'send' || $action == 'relance') && !$_POST['addfile'] && !$_POST
$subject = make_substitutions($subject, $substitutionarray);
$message = make_substitutions($message, $substitutionarray);
- if (method_exists($object, 'makeSubstitution')) {
+ if (is_object($object) && method_exists($object, 'makeSubstitution')) {
$subject = $object->makeSubstitution($subject);
$message = $object->makeSubstitution($message);
}
diff --git a/htdocs/projet/document.php b/htdocs/projet/document.php
index b088dcf7141..df31724d07c 100644
--- a/htdocs/projet/document.php
+++ b/htdocs/projet/document.php
@@ -164,7 +164,7 @@ if ($object->id > 0) {
print dol_get_fiche_end();
- $modulepart = 'project';
+ $modulepart = 'projet';
$permissiontoadd = ($userWrite > 0);
$permtoedit = ($userWrite > 0);
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';