[geeklog-cvs] Geeklog-1.x/system lib-user.php,1.42,1.43

Dirk Haun dhaun at qs1489.pair.com
Sat Jun 9 17:27:59 EDT 2007


Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv26661/system

Modified Files:
lib-user.php
Log Message:
It was supposed to look something like this ...


Index: lib-user.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-user.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** lib-user.php 9 Jun 2007 21:14:10 -0000 1.42
--- lib-user.php 9 Jun 2007 21:27:57 -0000 1.43
***************
*** 648,664 ****
{
global $_TABLES;
! $to_check = array ();
! array_push ($to_check, $groupid);
! $groups = array ();
! while (sizeof ($to_check) > 0) {
! $thisgroup = array_pop ($to_check);
if ($thisgroup > 0) {
! $result = DB_query ("SELECT ug_grp_id FROM {$_TABLES['group_assignments']} WHERE ug_main_grp_id = $thisgroup");
! $numGroups = DB_numRows ($result);
for ($i = 0; $i < $numGroups; $i++) {
! $A = DB_fetchArray ($result);
! if (!in_array ($A['ug_grp_id'], $groups)) {
! if (!in_array ($A['ug_grp_id'], $to_check)) {
! array_push ($to_check, $A['ug_grp_id']);
}
}
--- 648,665 ----
{
global $_TABLES;
!
! $to_check = array();
! array_push($to_check, $groupid);
! $groups = array();
! while (sizeof($to_check) > 0) {
! $thisgroup = array_pop($to_check);
if ($thisgroup > 0) {
! $result = DB_query("SELECT ug_grp_id FROM {$_TABLES['group_assignments']} WHERE ug_main_grp_id = $thisgroup");
! $numGroups = DB_numRows($result);
for ($i = 0; $i < $numGroups; $i++) {
! $A = DB_fetchArray($result);
! if (!in_array($A['ug_grp_id'], $groups)) {
! if (!in_array($A['ug_grp_id'], $to_check)) {
! array_push($to_check, $A['ug_grp_id']);
}
}
***************
*** 667,673 ****
}
}
- return $groups;
- }


! ?>
\ No newline at end of file
--- 668,674 ----
}
}

+ return $groups;
+ }

! ?>




More information about the geeklog-cvs mailing list