Browse Source

Group - Edit: Updates for PHP 8.1

fusionate 2 years ago
parent
commit
80b993e31d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      core/groups/group_edit.php

+ 3 - 3
core/groups/group_edit.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) 2018-2020
+	Portions created by the Initial Developer are Copyright (C) 2018-2023
 	the Initial Developer. All Rights Reserved.
 
 	Contributor(s):
@@ -305,7 +305,7 @@
 	echo "<td class='vtable' style='position: relative;' align='left'>\n";
 	echo "	<select class='formfld' name='group_protected'>\n";
 	echo "		<option value='false'>".$text['label-false']."</option>\n";
-	echo "		<option value='true' ".($group_protected == "true" ? "selected='selected'" : null).">".$text['label-true']."</option>\n";
+	echo "		<option value='true' ".(!empty($group_protected) && $group_protected == "true" ? "selected='selected'" : null).">".$text['label-true']."</option>\n";
 	echo "	</select>\n";
 	echo "<br />\n";
 	//echo $text['description-group_protected']."\n";
@@ -334,4 +334,4 @@
 //include the footer
 	require_once "resources/footer.php";
 
-?>
+?>