aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-17 17:24:09 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-17 17:24:09 +0000
commit70bdc6a8525c97a5cbe1090872fc341c9984ee26 (patch)
tree72b68fb21c4748a118d3ba851bcea1759f6ae905
parenta5c81f0ce1b2399314b516229da00dc51075003c (diff)
downloadelgg-70bdc6a8525c97a5cbe1090872fc341c9984ee26.tar.gz
elgg-70bdc6a8525c97a5cbe1090872fc341c9984ee26.tar.bz2
Access permissions now cached correctly.
git-svn-id: https://code.elgg.org/elgg/trunk@2096 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/access.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index cf4b82609..2df9aea58 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -50,6 +50,7 @@
function get_access_array($user_id = 0, $site_id = 0, $flush = false) {
global $CONFIG;
+ static $access_array;
if (!isset($access_array))
$access_array = array();