X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/04fa3d055ad6d878257eda34c3347efccc5c9caa..698ca0ba3178e27141c4d03c943f085c13107d39:/lib/SAMURAI/Permiso.php diff --git a/lib/SAMURAI/Permiso.php b/lib/SAMURAI/Permiso.php index f76449b..faca0f8 100644 --- a/lib/SAMURAI/Permiso.php +++ b/lib/SAMURAI/Permiso.php @@ -414,7 +414,7 @@ class SAMURAI_Permiso { } else { $sql = ' - SELECT p.id_permiso, p.desc_permiso, count(ps.id_sistema) AS cuenta + SELECT p.id_permiso, p.desc_permiso, NOT count(ps.id_sistema) AS cuenta FROM samurai.permiso AS p LEFT JOIN samurai.perm_sist AS ps ON (p.id_permiso = ps.id_permiso)