Commit:    608174ee7c426e5bc723ebe14e0da0aeb8b34c90
Author:    Kalle Sommer Nielsen <[email protected]>         Sat, 19 Nov 2016 
16:25:42 +0100
Parents:   f34c9ee4df1e5615a80f2a8a832f56bb77240bda
Branches:  master

Link:       
http://git.php.net/?p=web/master.git;a=commitdiff;h=608174ee7c426e5bc723ebe14e0da0aeb8b34c90

Log:
Don't display a link to people.php.net for unapproved accounts as they do not 
exists there

Changed paths:
  M  manage/users.php


Diff:
diff --git a/manage/users.php b/manage/users.php
index 6721580..21cd5d7 100644
--- a/manage/users.php
+++ b/manage/users.php
@@ -373,7 +373,11 @@ $extra = array(
   <th><a href="?<?php echo 
array_to_url($extra,array("unapproved"=>!$unapproved));?>"><?php echo 
$unapproved ? "&otimes" : "&oplus"; ?>;</a></th>
   <th><a href="?<?php echo 
array_to_url($extra,array("order"=>"name"));?>">name</a></th>
   <th><a href="?<?php echo 
array_to_url($extra,array("order"=>"email"));?>">email</a></th>
+<?php if (!$unapproved) { ?>
   <th><a href="?<?php echo 
array_to_url($extra,array("order"=>"username"));?>">username</a></th>
+<?php } else { ?>
+  <th>&nbsp;</th>
+<?php } ?>
 </tr>
 <?php
 while ($userdata = mysql_fetch_array($res)) {
@@ -382,7 +386,11 @@ while ($userdata = mysql_fetch_array($res)) {
     <td><a href="?username=<?php echo $userdata["username"];?>">edit</a></td>
     <td><?php echo $userdata['name'];?></td>
     <td><?php echo $userdata['email'];?></td>
+<?php if (!$unapproved) { ?>
     <td><a href="https://people.php.net/?username=<?php echo 
hscr($userdata['username'])?>"><?php echo hscr($userdata['username']) 
?></a></td>
+<?php } else { ?>
+    <td>&nbsp;</td>
+<?php } ?>
   </tr>
 <?php
 }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to