svn: /web/php-bugs/trunk/www/js/ userlisting.php
| From: | Felipe Pena | Date: | Sat, 09 Jul 2011 12:07:11 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/js/ userlisting.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11503@lists.php.net to get a copy of this message | ||
felipe Sat, 09 Jul 2011 12:07:11 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=313086
Log:
- Fix user listing lookup
Changed paths:
U web/php-bugs/trunk/www/js/userlisting.php
Modified: web/php-bugs/trunk/www/js/userlisting.php
===================================================================
--- web/php-bugs/trunk/www/js/userlisting.php 2011-07-09 12:06:11 UTC (rev 313085)
+++ web/php-bugs/trunk/www/js/userlisting.php 2011-07-09 12:07:11 UTC (rev 313086)
@@ -50,8 +50,7 @@
if ($json) {
foreach ($json as $row) {
- $lookup[] = $row['name'];
- $lookup[] = $row['username'];
+ $lookup[] = $row['name'];
$data = array(
'email' => md5($row['username'] . '@php.net'),
@@ -61,9 +60,10 @@
/* Only add the user name in the array if it is not the same as the begin of the real name */
if (!preg_match('/^'. preg_quote($row['username']) .'/i',
$row['name'])) {
+ $lookup[] = $row['username'];
$user[$row['username']] = $data;
}
- $user[$row['name']] = $data;
+ $user[$row['name']] = $data;
}
}