From: Bharat M. <bh...@us...> - 2002-01-26 06:49:38
|
Update of /cvsroot/gallery/gallery/classes/gallery In directory usw-pr-cvs1:/tmp/cvs-serv11125 Modified Files: UserDB.php Log Message: We're assuming that the name of the user file is the same as the uid, but on Windows (which doesn't allow : in the file name) that's not the case. Index: UserDB.php =================================================================== RCS file: /cvsroot/gallery/gallery/classes/gallery/UserDB.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- UserDB.php 2001/09/11 05:39:58 1.6 +++ UserDB.php 2002/01/26 06:49:35 1.7 @@ -199,7 +199,11 @@ continue; } - array_push($uidList, $file); + $tmp = getFile($gallery->app->userDir . "/" . $file); + $user = unserialize($tmp); + if (!strcmp(get_class($user), "gallery_user")) { + array_push($uidList, $user->uid); + } } } |