Fix column balance

This commit is contained in:
Laurent Destailleur 2018-11-14 13:52:43 +01:00
parent ba22ae45e7
commit df2aa2e2f6

View File

@ -313,7 +313,7 @@ if ($result)
print '<tr class="oddeven trforbreak">'; print '<tr class="oddeven trforbreak">';
print '<td class="maxwidthonsmartphone tdoverflowonsmartphone">'.img_object('',$picto,'class="pictoobjectwidth"').' '.$objMod->getName(); print '<td class="maxwidthonsmartphone tdoverflowonsmartphone">'.img_object('',$picto,'class="pictoobjectwidth"').' '.$objMod->getName();
print '<a name="'.$objMod->getName().'"></a></td>'; print '<a name="'.$objMod->getName().'"></a></td>';
if ($caneditperms && empty($objMod->rights_admin_allowed) || empty($object->admin)) if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin))
{ {
if ($caneditperms) if ($caneditperms)
{ {
@ -324,6 +324,13 @@ if ($result)
print '</td>'; print '</td>';
} }
} }
else
{
if ($caneditperms)
{
print '<td></td>';
}
}
print '<td colspan="2">&nbsp;</td>'; print '<td colspan="2">&nbsp;</td>';
print '</tr>'."\n"; print '</tr>'."\n";
} }