forked from Public/pics
		
	Asset: fix createNew query
This commit is contained in:
		
							parent
							
								
									609edf3332
								
							
						
					
					
						commit
						f82e952247
					
				@ -264,7 +264,7 @@ class Asset
 | 
			
		||||
			VALUES
 | 
			
		||||
			(:id_user_uploaded, :subdir, :filename, :title, :slug, :mimetype,
 | 
			
		||||
			 :image_width, :image_height,
 | 
			
		||||
			 IF(:date_captured > 0, FROM_UNIXTIME(:date_captured), NULL),
 | 
			
		||||
			 ' . (!empty($date_captured) ? 'FROM_UNIXTIME(:date_captured)' : 'NULL') . ',
 | 
			
		||||
			 :priority)',
 | 
			
		||||
			[
 | 
			
		||||
				'id_user_uploaded' => isset($id_user) ? $id_user : Registry::get('user')->getUserId(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user