[dev] Customising Auth::isAdmin()
Chuck Hagenbuch
chuck at horde.org
Wed Aug 27 05:31:24 PDT 2003
Quoting Jan Schneider <jan at horde.org>:
> if (isset($this->capabilities[$capability]) &&
> !empty($this->capabilities[$capability]))
This is, and always has been, redundant.
>From http://us2.php.net/empty:
empty() is the opposite of (boolean) var, except that no warning is generated
when the variable is not set. See converting to boolean for more information.
-chuck
--
Charles Hagenbuch, <chuck at horde.org>
They're just looking at a wall of meat.
More information about the dev
mailing list