From bea734c998d22143f7dc34f54f119b7323c35eb1 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 30 Mar 2011 22:06:08 +0000 Subject: Fixed ajax status for elgg.action(). git-svn-id: http://code.elgg.org/elgg/trunk@8883 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/actions.php b/engine/lib/actions.php index c92ed4cb7..407b99f87 100644 --- a/engine/lib/actions.php +++ b/engine/lib/actions.php @@ -421,7 +421,7 @@ function ajax_forward_hook($hook, $type, $reason, $params) { //Grab any system messages so we can inject them via ajax too $params['system_messages'] = system_messages(NULL, ""); - if (isset($params['system_messages']['errors'])) { + if (isset($params['system_messages']['error'])) { $params['status'] = -1; } else { $params['status'] = 0; -- cgit v1.2.3