]> git.llucax.com Git - mecon/samurai.git/blobdiff - lib/SAMURAI/Perm.php
(no commit message)
[mecon/samurai.git] / lib / SAMURAI / Perm.php
index ba8ccf9370fd5c9da1586414b432cf74cd05cb3c..b1b080519386ab67628fa936025062096f0cb8aa 100644 (file)
@@ -107,11 +107,11 @@ Si no se pasa ningn p?ametro ($perm->tiene()), devuelve true si tiene un permiso
         } else {
             foreach ($args as $arg) {
                 if (is_array($arg)) {
         } else {
             foreach ($args as $arg) {
                 if (is_array($arg)) {
-                     if (array_intersect($arg, @$this->_permisos[$this->_sistema])) {
+                     if (@array_intersect($arg, $this->_permisos[$this->_sistema])) {
                         return true;
                      }
                 } else {
                         return true;
                      }
                 } else {
-                     if (in_array($arg, @$this->_permisos[$this->_sistema])) {
+                     if (@in_array($arg, $this->_permisos[$this->_sistema])) {
                         return true;
                      }
                 }
                         return true;
                      }
                 }