Fix logical test always false

subscription is an integer and is set to 0 or 1. So subscription is never equal to "yes"
This commit is contained in:
daraelmin 2021-04-29 22:57:39 +02:00 committed by GitHub
parent a891211f78
commit 965eb2d639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -857,7 +857,7 @@ while ($i < min($num, $limit))
else
{
print '<td class="nowrap left">';
if ($obj->subscription == 'yes')
if (!empty($obj->subscription))
{
print $langs->trans("SubscriptionNotReceived");
if ($obj->statut > 0) print " ".img_warning();