Fix dereferencing $tag when null #47
@ -715,7 +715,7 @@ class Asset
 | 
				
			|||||||
			LIMIT 1',
 | 
								LIMIT 1',
 | 
				
			||||||
			[
 | 
								[
 | 
				
			||||||
				'id_asset' => $this->id_asset,
 | 
									'id_asset' => $this->id_asset,
 | 
				
			||||||
				'id_tag' => $tag->id_tag,
 | 
									'id_tag' => isset($tag) ? $tag->id_tag : null,
 | 
				
			||||||
				'date_captured' => $this->date_captured,
 | 
									'date_captured' => $this->date_captured,
 | 
				
			||||||
			]);
 | 
								]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -746,7 +746,7 @@ class Asset
 | 
				
			|||||||
			LIMIT 1',
 | 
								LIMIT 1',
 | 
				
			||||||
			[
 | 
								[
 | 
				
			||||||
				'id_asset' => $this->id_asset,
 | 
									'id_asset' => $this->id_asset,
 | 
				
			||||||
				'id_tag' => $tag->id_tag,
 | 
									'id_tag' => isset($tag) ? $tag->id_tag : null,
 | 
				
			||||||
				'date_captured' => $this->date_captured,
 | 
									'date_captured' => $this->date_captured,
 | 
				
			||||||
			]);
 | 
								]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user