mirror of
				https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
				synced 2025-11-03 20:20:20 -05:00 
			
		
		
		
	fix php8 error in user.php
This commit is contained in:
		
							parent
							
								
									ee37419582
								
							
						
					
					
						commit
						f942c4905e
					
				@ -47,7 +47,7 @@ Template::render_header(_("User"), true);
 | 
			
		||||
?>
 | 
			
		||||
<div class="text-center">
 | 
			
		||||
	  <h1><?php 
 | 
			
		||||
	  if ($_SESSION['user'] == $_GET['id'])
 | 
			
		||||
	  if (isset($_GET['id']) && isset($_SESSION['user']) && $_SESSION['user'] == $_GET['id'])
 | 
			
		||||
	  {
 | 
			
		||||
		echo _("User settings");
 | 
			
		||||
	  }else{
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,11 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
// enable this for debugging
 | 
			
		||||
// error_reporting(E_ALL);
 | 
			
		||||
// ini_set('display_startup_errors', 1);
 | 
			
		||||
// ini_set('display_errors', 1);
 | 
			
		||||
// ini_set("log_errors", 1);
 | 
			
		||||
 | 
			
		||||
$statuses = array(_("Major outage"), _("Minor outage"), _("Planned maintenance"), _("Operational") );
 | 
			
		||||
$classes = array("danger", "warning", "primary", "success" );
 | 
			
		||||
$icons = array("fa fa-times", "fa fa-exclamation", "fa fa-info", "fa fa-check" );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user