Log a message when data isn't the expected type in GContact::updateFromOutbox
This commit is contained in:
		
					parent
					
						
							
								97b0175e55
							
						
					
				
			
			
				commit
				
					
						e976bc0668
					
				
			
		
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -876,7 +876,11 @@ class GContact | ||||||
| 			self::updateFromOutbox($outbox['first']['href'], $data); | 			self::updateFromOutbox($outbox['first']['href'], $data); | ||||||
| 			return; | 			return; | ||||||
| 		} elseif (!empty($outbox['first'])) { | 		} elseif (!empty($outbox['first'])) { | ||||||
|  | 			if (is_string($outbox['first'])) { | ||||||
| 				self::updateFromOutbox($outbox['first'], $data); | 				self::updateFromOutbox($outbox['first'], $data); | ||||||
|  | 			} else { | ||||||
|  | 				Logger::warning('Unexpected data', ['outbox' => $outbox]); | ||||||
|  | 			} | ||||||
| 			return; | 			return; | ||||||
| 		} else { | 		} else { | ||||||
| 			$items = []; | 			$items = []; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue