Moves the function "is_result" from dba to dbm.
This commit is contained in:
		
					parent
					
						
							
								91e20f2f9b
							
						
					
				
			
			
				commit
				
					
						e4c6cfd2d8
					
				
			
		
					 11 changed files with 30 additions and 40 deletions
				
			
		| 
						 | 
				
			
			@ -230,16 +230,6 @@ class dba {
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Checks if $array is a filled array with at least one entry.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param	$array	mixed	A filled array with at least one entry
 | 
			
		||||
	 * @return	Whether $array is a filled array
 | 
			
		||||
	 */
 | 
			
		||||
	public function is_result ($array) {
 | 
			
		||||
		return (is_array($array) && count($array) > 0);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	function __destruct() {
 | 
			
		||||
		if ($this->db)
 | 
			
		||||
			if($this->mysqli)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue