In this board you can talk about general questions about phpMyFAQ
	Moderator: Thorsten
			
		
		
			- 
				
																			 Thorsten
- Posts: 15749
- Joined: Tue Sep 25, 2001 11:14 am
- Location: #phpmyfaq
- 
				Contact:
				
			
						
					
													
							
						
									
						Post
					
								by Thorsten » 
			
			
			
			
			
			Hi,
notset4life wrote:Any thoughts on what happened here?
not really because I couldn't reproduce your issue... But I still investigate this.
bye
Thorsten
 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 crisguille
- Posts: 1
- Joined: Thu Aug 19, 2010 3:31 pm
						
					
													
							
						
									
						Post
					
								by crisguille » 
			
			
			
			
			
			$result is a mysqli_result object, I patch the code doing this:
 if($result !== false)
      	$num_rows = mysqli_num_rows($result);
      else
      	$num_rows = 0;
This is on /inc/PMF_DB/Mysqli.php line 176. So
public function num_rows($result)
    {
      if($result !== false)
      	$num_rows = mysqli_num_rows($result);
      else
      	$num_rows = 0;
     
      return $num_rows;
    }
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 Thorsten
- Posts: 15749
- Joined: Tue Sep 25, 2001 11:14 am
- Location: #phpmyfaq
- 
				Contact:
				
			
						
					
													
							
						
									
						Post
					
								by Thorsten » 
			
			
			
			
			
			Hi,
I already fixed this in another file.
bye
Thorsten
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 notset4life
- Posts: 30
- Joined: Tue Oct 18, 2005 2:02 pm
						
					
													
							
						
									
						Post
					
								by notset4life » 
			
			
			
			
			
			I'm sorry Thorsten, is there an update I missed somewhere?  You said you "already fixed this" in another file.
Where is that?
thanks
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 Thorsten
- Posts: 15749
- Joined: Tue Sep 25, 2001 11:14 am
- Location: #phpmyfaq
- 
				Contact:
				
			
						
					
													
							
						
									
						Post
					
								by Thorsten » 
			
			
			
			
			
			Hi,
you already have the fix... there are plenty of fixes, just follow (if you like) my git commits on github. 2.6.8 should be out next week.
bye
Thorsten