Browse Source

Fix column balance

Laurent Destailleur 6 years ago
parent
commit
df2aa2e2f6
1 changed files with 8 additions and 1 deletions
  1. 8 1
      htdocs/user/perms.php

+ 8 - 1
htdocs/user/perms.php

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