Changeset 1124
- Timestamp:
- 05/30/07 09:12:53 (2 years ago)
- Files:
-
- devel/mod/community/lib.php (modified) (1 diff)
- devel/mod/community/lib/communities_access_levels.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/community/lib.php
r1114 r1124 135 135 136 136 // Add communities to access levels 137 $function['init'][] = $CFG->dirroot . "mod/community/lib/communities_access_levels.php";137 include($CFG->dirroot . "mod/community/lib/communities_access_levels.php"); 138 138 $function['userdetails:init'][] = $CFG->dirroot . "mod/community/lib/userdetails_actions.php"; 139 139 devel/mod/community/lib/communities_access_levels.php
r1080 r1124 5 5 global $USER; 6 6 global $CFG; 7 global $data; 7 8 8 9 if ($communities = get_records_select('users','owner = ? AND user_type = ?',array($USER->ident,'community'))) { … … 12 13 } 13 14 14 if ($communities = get_records_sql("SELECT u.* FROM ".$CFG->prefix."friends f15 if ($communities = get_records_sql("SELECT u.* FROM ".$CFG->prefix."friends f 15 16 JOIN ".$CFG->prefix.'users u ON u.ident = f.friend 16 17 WHERE u.user_type = ? AND u.owner <> ? AND f.owner = ?',
