Removed last offline duration parentheses if empty (#641)
							parent
							
								
									de29906f27
								
							
						
					
					
						commit
						132a730d71
					
				| 
						 | 
				
			
			@ -5,6 +5,7 @@ Changelog
 | 
			
		|||
Not yet released
 | 
			
		||||
----------------
 | 
			
		||||
 | 
			
		||||
* #640: Removed () after last offline value when the last offline duration is unknown.
 | 
			
		||||
* #637: Added php extensions to composer required list, spelling fixes in changelog and composer update.
 | 
			
		||||
* #635: Changed server order on ?&mod=user&action=edit&id=x.
 | 
			
		||||
* #634: Changed ' to " in sql query, both were used.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -107,7 +107,8 @@ abstract class AbstractServerController extends AbstractController {
 | 
			
		|||
		$server['last_online'] = psm_timespan($server['last_online']);
 | 
			
		||||
		$server['last_offline'] = psm_timespan($server['last_offline']);
 | 
			
		||||
		if ($server['last_offline'] != psm_get_lang('system', 'never')) {
 | 
			
		||||
			$server['last_offline_duration'] = "(".$server['last_offline_duration'].")";
 | 
			
		||||
			$server['last_offline_duration'] = is_null($server['last_offline_duration']) ?
 | 
			
		||||
                null : "(".$server['last_offline_duration'].")";
 | 
			
		||||
		}
 | 
			
		||||
		$server['last_check'] = psm_timespan($server['last_check']);
 | 
			
		||||
		$server['active'] = psm_get_lang('system', $server['active']);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue