Only warn when there are arguments at all
This commit is contained in:
		
					parent
					
						
							
								f29e21eb5c
							
						
					
				
			
			
				commit
				
					
						cd16155c96
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -391,7 +391,7 @@ class dba {
 | 
			
		|||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (substr_count($sql, '?') != count($args)) {
 | 
			
		||||
		if ((substr_count($sql, '?') != count($args)) && (count($args) > 0)) {
 | 
			
		||||
			// Question: Should we continue or stop the query here?
 | 
			
		||||
			logger('Parameter mismatch. Query "'.$sql.'" - Parameters '.print_r($args, true), LOGGER_DEBUG);
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue