ajax.php
changeset 1252 e34c23a35dc9
parent 1227 bdac73ed481e
child 1276 dac5fad7ad6a
--- a/ajax.php	Sun May 16 21:35:43 2010 -0400
+++ b/ajax.php	Wed Jun 02 21:58:26 2010 -0400
@@ -453,7 +453,8 @@
 		break;
 	case "catsave":
 		require_once(ENANO_ROOT.'/includes/pageutils.php');
-		echo PageUtils::catsave($paths->page_id, $paths->namespace, $_POST);
+		$categories = !empty($_POST['categories']) ? $_POST['categories'] : array();
+		echo PageUtils::catsave($paths->page_id, $paths->namespace, $categories);
 		break;
 	case "setwikimode":
 		require_once(ENANO_ROOT.'/includes/pageutils.php');