X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/1ecc9798cbde319c7c4168c14f613670accb9982..ea699aa7fc38d1a95e3bf62bea24d342ddcd2fcc:/lib/SAMURAI/Perm.php diff --git a/lib/SAMURAI/Perm.php b/lib/SAMURAI/Perm.php index ba8ccf9..b1b0805 100644 --- a/lib/SAMURAI/Perm.php +++ b/lib/SAMURAI/Perm.php @@ -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)) { - if (array_intersect($arg, @$this->_permisos[$this->_sistema])) { + if (@array_intersect($arg, $this->_permisos[$this->_sistema])) { return true; } } else { - if (in_array($arg, @$this->_permisos[$this->_sistema])) { + if (@in_array($arg, $this->_permisos[$this->_sistema])) { return true; } }