Merge pull request #17437 from daraelmin/daraelmin-patch-v11-2
Fix logical test always false V11 to v14
This commit is contained in:
commit
08c85a88c8
3 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -710,7 +710,7 @@ if ($rowid > 0)
|
|||
else
|
||||
{
|
||||
print '<td class="nowrap left">';
|
||||
if ($objp->subscription == 'yes')
|
||||
if (!empty($objp->subscription))
|
||||
{
|
||||
print $langs->trans("SubscriptionNotReceived");
|
||||
if ($objp->statut > 0) print " ".img_warning();
|
||||
|
|
|
|||
|
|
@ -331,7 +331,7 @@ if ($id > 0 || ! empty($ref))
|
|||
else
|
||||
{
|
||||
print '<td class="left nowrap">';
|
||||
if ($objp->subscription == 'yes')
|
||||
if (!empty($objp->subscription))
|
||||
{
|
||||
print $langs->trans("SubscriptionNotReceived");
|
||||
if ($objp->statut > 0) print " ".img_warning();
|
||||
|
|
|
|||
Loading…
Reference in a new issue