From: <var...@us...> - 2009-04-01 13:22:50
|
Revision: 6758 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6758&view=rev Author: vargenau Date: 2009-04-01 12:43:12 +0000 (Wed, 01 Apr 2009) Log Message: ----------- Fix uninitialized variable problem in function isAuthorized Modified Paths: -------------- trunk/lib/PagePerm.php Modified: trunk/lib/PagePerm.php =================================================================== --- trunk/lib/PagePerm.php 2009-04-01 12:13:15 UTC (rev 6757) +++ trunk/lib/PagePerm.php 2009-04-01 12:43:12 UTC (rev 6758) @@ -376,8 +376,8 @@ * (userid, group membership). */ function isAuthorized($access, $user) { - if (!empty($this->perm{$access})) { - $allow = -1; + $allow = -1; + if (!empty($this->perm{$access})) { foreach ($this->perm[$access] as $group => $bool) { if ($this->isMember($user, $group)) { return $bool; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |