瀏覽代碼

Misc: Updates for PHP 8.1 (?: to ??)

fusionate 2 年之前
父節點
當前提交
8b1beb67fe

+ 2 - 2
core/dashboard/dashboard.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2021
+	Portions created by the Initial Developer are Copyright (C) 2021-2023
 	the Initial Developer. All Rights Reserved.
 */
 
@@ -119,7 +119,7 @@
 // 					$array['dashboard'][$x]['dashboard_name'] = $row["dashboard_name"];
 // 					$array['dashboard'][$x]['dashboard_path'] = $row["dashboard_path"];
 // 					$array['dashboard'][$x]['dashboard_order'] = $row["dashboard_order"];
-// 					$array['dashboard'][$x]['dashboard_enabled'] = $row["dashboard_enabled"] ?: 'false';
+// 					$array['dashboard'][$x]['dashboard_enabled'] = $row["dashboard_enabled"] ?? 'false';
 // 					$array['dashboard'][$x]['dashboard_description'] = $row["dashboard_description"];
 //
 // 					//get the dashboard groups

+ 2 - 2
core/dashboard/dashboard_edit.php

@@ -18,7 +18,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2021
+	Portions created by the Initial Developer are Copyright (C) 2021-2023
 	the Initial Developer. All Rights Reserved.
 */
 
@@ -228,7 +228,7 @@
 			$dashboard_column_span = $row["dashboard_column_span"];
 			$dashboard_details_state = $row["dashboard_details_state"];
 			$dashboard_order = $row["dashboard_order"];
-			$dashboard_enabled = $row["dashboard_enabled"] ?: 'false';
+			$dashboard_enabled = $row["dashboard_enabled"] ?? 'false';
 			$dashboard_description = $row["dashboard_description"];
 		}
 		unset($sql, $parameters, $row);

+ 1 - 1
core/domain_settings/domain_setting_edit.php

@@ -85,7 +85,7 @@
 		$domain_setting_name = strtolower($_POST["domain_setting_name"]);
 		$domain_setting_value = $_POST["domain_setting_value"];
 		$domain_setting_order = $_POST["domain_setting_order"];
-		$domain_setting_enabled = strtolower($_POST["domain_setting_enabled"] ?: 'false');
+		$domain_setting_enabled = strtolower($_POST["domain_setting_enabled"] ?? 'false');
 		$domain_setting_description = $_POST["domain_setting_description"];
 	}
 

+ 1 - 1
core/users/user_edit.php

@@ -138,7 +138,7 @@
 				$contact_name_family = $_POST["contact_name_family"];
 			}
 			$group_uuid_name = $_POST["group_uuid_name"];
-			$user_enabled = $_POST["user_enabled"] ?: 'false';
+			$user_enabled = $_POST["user_enabled"] ?? 'false';
 			if (permission_exists('api_key')) {
 				$api_key = $_POST["api_key"];
 			}