浏览代码

Update domain_settings.php (#4662)

chansizzle 6 年之前
父节点
当前提交
8e7516833f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/domain_settings/domain_settings.php

+ 2 - 2
core/domain_settings/domain_settings.php

@@ -17,7 +17,7 @@
 
 
  The Initial Developer of the Original Code is
  The Initial Developer of the Original Code is
  Mark J Crane <[email protected]>
  Mark J Crane <[email protected]>
- Portions created by the Initial Developer are Copyright (C) 2008-2018
+ Portions created by the Initial Developer are Copyright (C) 2008-2019
  the Initial Developer. All Rights Reserved.
  the Initial Developer. All Rights Reserved.
 
 
  Contributor(s):
  Contributor(s):
@@ -402,7 +402,7 @@
 	echo "<br /><br />";
 	echo "<br /><br />";
 
 
 	// check or uncheck all category checkboxes
 	// check or uncheck all category checkboxes
-	if (sizeof($subcat_ids) > 0) {
+	if (isset($subcat_ids) && sizeof($subcat_ids) > 0) {
 		echo "<script>\n";
 		echo "<script>\n";
 		echo "	function check(what, category) {\n";
 		echo "	function check(what, category) {\n";
 		foreach ($subcat_ids as $domain_setting_category => $checkbox_ids) {
 		foreach ($subcat_ids as $domain_setting_category => $checkbox_ids) {