Found some more for dba::is_result().
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
		
					parent
					
						
							
								3e701b90ac
							
						
					
				
			
			
				commit
				
					
						7c04a0d232
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -612,7 +612,7 @@ function acl_lookup(&$a, $out_type = 'json') {
 | 
			
		|||
				dbesc($search),
 | 
			
		||||
				implode("','", $known_contacts)
 | 
			
		||||
		);
 | 
			
		||||
		if (is_array($r) && count($r)){
 | 
			
		||||
		if (dba::is_result($r)){
 | 
			
		||||
			foreach($r as $row) {
 | 
			
		||||
				// nickname..
 | 
			
		||||
				$up = parse_url($row['author-link']);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2612,7 +2612,7 @@
 | 
			
		|||
			intval(api_user())
 | 
			
		||||
		);
 | 
			
		||||
 | 
			
		||||
		if(is_array($r)) {
 | 
			
		||||
		if(dba::is_result($r)) {
 | 
			
		||||
 | 
			
		||||
			if($type === 'xml') {
 | 
			
		||||
				header("Content-type: application/xml");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue