plugins/SpecialPageFuncs.php
changeset 1352 d97cf005f674
parent 1295 3c9c1b18567b
child 1356 e80b5733ce9d
--- a/plugins/SpecialPageFuncs.php	Fri Jul 22 23:14:06 2011 -0400
+++ b/plugins/SpecialPageFuncs.php	Sun Sep 04 02:32:49 2011 -0400
@@ -643,6 +643,9 @@
 			case 'username':
 				if ( isset($_GET['userinput']) && strlen($_GET['userinput']) >= 3 )
 				{
+					if ( $session->user_id == 1 && getConfig('autofill_username_for_guests', 0) != 1 )
+						break;
+					
 					$search = '%' . escape_string_like($_GET['userinput']) . '%';
 					$lsearch = strtolower($search);
 					$min_id = ( isset($_GET['allow_anon']) && $_GET['allow_anon'] == '1' ) ? '1' : '2';