Continued with coding convention:
- added curly braces around conditional code blocks - added space between if/foreach/... and brace - rewrote a code block so if dbm::is_result() fails it will abort, else the id is fetched from INSERT statement - made some SQL keywords upper-cased and added back-ticks to columns/table names Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
		
					parent
					
						
							
								de689583e2
							
						
					
				
			
			
				commit
				
					
						6c0c9d542a
					
				
			
		
					 18 changed files with 82 additions and 67 deletions
				
			
		| 
						 | 
				
			
			@ -553,7 +553,7 @@ function update_contact_birthdays() {
 | 
			
		|||
 | 
			
		||||
	$r = q("SELECT * FROM contact WHERE `bd` != '' AND `bd` != '0000-00-00' AND SUBSTRING(`bd`,1,4) != `bdyear` ");
 | 
			
		||||
	if (dbm::is_result($r)) {
 | 
			
		||||
		foreach($r as $rr) {
 | 
			
		||||
		foreach ($r as $rr) {
 | 
			
		||||
 | 
			
		||||
			logger('update_contact_birthday: ' . $rr['bd']);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue