Changeset 28699 for extensions/UserAdvManager
- Timestamp:
- Jun 14, 2014, 8:14:18 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/admin/UAM_admin.php
r27178 r28699 1275 1275 // | groups list | 1276 1276 // +-----------------------------------------------------------------------+ 1277 1278 $ groups[-1] = '------------';1277 global $uam_groups; // used in callback 1278 $uam_groups[-1] = '------------'; 1279 1279 1280 1280 $query = ' … … 1288 1288 while ($row = pwg_db_fetch_assoc($result)) 1289 1289 { 1290 $ groups[$row['id']] = $row['name'];1290 $uam_groups[$row['id']] = $row['name']; 1291 1291 } 1292 1292 … … 1303 1303 $visible_user_list[] = $local_user; 1304 1304 } 1305 1306 $callback = create_function('$m', 'global $uam_groups; return $uam_groups[$m[1]];'); 1305 1307 1306 1308 foreach ($visible_user_list as $local_user) 1307 1309 { 1308 $groups_string = preg_replace (1309 '/(\d+)/ e',1310 "\$groups['$1']",1310 $groups_string = preg_replace_callback( 1311 '/(\d+)/', 1312 $callback, 1311 1313 implode( 1312 1314 ', ', … … 1378 1380 ) 1379 1381 ); 1380 } 1382 } 1383 1384 unset($uam_groups); // remove from global scope 1381 1385 1382 1386 // Check if validation of register is made by admin or visitor
Note: See TracChangeset
for help on using the changeset viewer.