X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/04fa3d055ad6d878257eda34c3347efccc5c9caa..ce8c82238fa511d1a2523e67cca4d76b4a66a4a0:/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)