Browse code

Series: category settings bug - dirty fix

Clarissa Walker authored on 2026/07/15 21:05:59
Showing 1 changed files
... ...
@@ -83,7 +83,8 @@ if($add == "series" || ($action == "add" && !$add) || $action == "edit") {
83 83
 	if(isset($_POST['submit'])) {
84 84
 		$title = addslashes(escapestring(strip_tags($_POST['title'], $allowed_tags)));
85 85
 		$summary = addslashes(escapestring(descript(strip_tags($_POST["summary"], $allowed_tags))));
86
-		$category = isset($_POST['catid']) ? explode(",", $_POST['catid']) : array();
86
+		if ($multiplecats) $category = isset($_POST['catid']) ? explode(",", $_POST['catid']) : array();
87
+		else $category = isset($_POST['catid']) ? $_POST['catid'] : array();
87 88
 		$category = array_filter($category, "isNumber");
88 89
 		if($category) $category = implode(",", $category);
89 90
 		else $category = "";