diff --git a/admin/inc/class.admin_customfields.inc.php b/admin/inc/class.admin_customfields.inc.php
index b194ffc986..eb7f2a74cc 100644
--- a/admin/inc/class.admin_customfields.inc.php
+++ b/admin/inc/class.admin_customfields.inc.php
@@ -282,7 +282,7 @@ class admin_customfields
);
// Allow extending app a change to change content before display
- $readonlys = null;
+ if (!isset($readonlys)) $readonlys = [];
static::app_index($content, $sel_options, $readonlys, $preserve);
// Set app to admin to make sure actions are correctly loaded into admin
diff --git a/admin/templates/default/config.xet b/admin/templates/default/config.xet
index f08e5abdd2..c50e116b9c 100644
--- a/admin/templates/default/config.xet
+++ b/admin/templates/default/config.xet
@@ -32,7 +32,7 @@
-
+
diff --git a/admin/templates/default/customfield_edit.xet b/admin/templates/default/customfield_edit.xet
index e109c47168..5127f35c1b 100644
--- a/admin/templates/default/customfield_edit.xet
+++ b/admin/templates/default/customfield_edit.xet
@@ -37,7 +37,7 @@
-
+
diff --git a/admin/templates/default/customfields.xet b/admin/templates/default/customfields.xet
index 1f35c4c4ef..8d308969a2 100644
--- a/admin/templates/default/customfields.xet
+++ b/admin/templates/default/customfields.xet
@@ -27,7 +27,7 @@
-
+