includes/characterlist.php: Somehow having two copies of the same exact function stops the character list from bugging out when using the category list while using tinyMCE 4.x or newer - also somehow no PHP errors, either...
includes/characterlist.php: Somehow having two copies of the same exact function stops the character list from bugging out when using the category list while using tinyMCE 4.x or newer - also somehow no PHP errors, either...

--- a/includes/characterlist.php
+++ b/includes/characterlist.php
@@ -7,6 +7,16 @@
 //header("Content-Type: text/html; charset=".CHARSET,true);
 include("../includes/queries.php");
 // Checks that the given $num is actually a number.  Used to help prevent XSS attacks.
+// Peculiar... Leaving both copies of the same exact function in this file prevents
+// breakage of the character list when using the category list for tinyMCE 4.x and newer...
+function isNumber($num) {
+	if(empty($num)) return false;
+	return (preg_match("/^[0-9]+$/", $num) || $num == "-1" ? true : false);
+}
+
+// Checks that the given $num is actually a number.  Used to help prevent XSS attacks.
+// Peculiar... Leaving both copies of the same exact function in this file prevents
+// breakage of the character list when using the category list for tinyMCE 4.x and newer...
 function isNumber($num) {
 	if(empty($num)) return false;
 	return (preg_match("/^[0-9]+$/", $num) || $num == "-1" ? true : false);