too many profiles
This commit is contained in:
		
					parent
					
						
							
								b385729c17
							
						
					
				
			
			
				commit
				
					
						83b9a8eb44
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -635,7 +635,7 @@ function profiles_content(&$a) {
 | 
			
		|||
	}
 | 
			
		||||
	else {
 | 
			
		||||
 | 
			
		||||
		$r = q("SELECT `profile`.*, `contact`.`avatar-date` AS picdate FROM `profile` LEFT JOIN `contact` on `contact`.`uid` = `profile`.`uid` WHERE `profile`.`uid` = %d",
 | 
			
		||||
		$r = q("SELECT `profile`.*, `contact`.`avatar-date` AS picdate FROM `profile` LEFT JOIN `contact` on `contact`.`uid` = `profile`.`uid` WHERE `profile`.`uid` = %d and contact.self = 1",
 | 
			
		||||
			local_user());
 | 
			
		||||
		if(count($r)) {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue