diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index 136a1fac354..c3cc5fbb7cb 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -211,7 +211,6 @@ if ($result) { $objectstatic=new Propal($db); $userstatic=new User($db); - $num = $db->num_rows($result); if ($socid) @@ -394,6 +393,25 @@ if ($result) $i++; } + + if ($total>0) + { + if($num<$limit){ + $var=!$var; + print ''.$langs->trans("Total HT").''; + print ''.price($total).''; + print ''; + } + else + { + $var=!$var; + print ''.$langs->trans("Total HT for this page").''; + print ''.price($total).''; + print ''; + } + + } + print ''; print '';