Fix more undefined variable/index notice in tests
This commit is contained in:
		
					parent
					
						
							
								209510e970
							
						
					
				
			
			
				commit
				
					
						a380bcd1c1
					
				
			
		
					 7 changed files with 43 additions and 31 deletions
				
			
		| 
						 | 
				
			
			@ -1156,7 +1156,7 @@ function put_item_in_cache(&$item, $update = false)
 | 
			
		|||
	$rendered_html = defaults($item, 'rendered-html', '');
 | 
			
		||||
 | 
			
		||||
	if ($rendered_hash == ''
 | 
			
		||||
		|| $item["rendered-html"] == ""
 | 
			
		||||
		|| $rendered_html == ""
 | 
			
		||||
		|| $rendered_hash != hash("md5", $item["body"])
 | 
			
		||||
		|| Config::get("system", "ignore_cache")
 | 
			
		||||
	) {
 | 
			
		||||
| 
						 | 
				
			
			@ -1176,7 +1176,7 @@ function put_item_in_cache(&$item, $update = false)
 | 
			
		|||
			$update = true;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if ($update && ($item["id"] > 0)) {
 | 
			
		||||
		if ($update && !empty($item["id"])) {
 | 
			
		||||
			Item::update(['rendered-html' => $item["rendered-html"], 'rendered-hash' => $item["rendered-hash"]],
 | 
			
		||||
					['id' => $item["id"]]);
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue