diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php
index cee13c53d1c..17666183319 100644
--- a/htdocs/user/perms.php
+++ b/htdocs/user/perms.php
@@ -313,7 +313,7 @@ if ($result)
print '
';
print '| '.img_object('',$picto,'class="pictoobjectwidth"').' '.$objMod->getName();
print ' | ';
- 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 '';
}
}
+ else
+ {
+ if ($caneditperms)
+ {
+ print ' | ';
+ }
+ }
print ' | ';
print '
'."\n";
}