From e4f3b1414840833c6f623d7eaa4984a02b1dff69 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 11 Aug 2010 00:22:42 -0600 Subject: [PATCH] Make sure deleted folders are strings Or else, javascript functions may fail since Number.prototype does not have the same method list as String.prototype. --- imp/lib/Ajax/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/Ajax/Application.php b/imp/lib/Ajax/Application.php index 8e256750e..71b19d2d2 100644 --- a/imp/lib/Ajax/Application.php +++ b/imp/lib/Ajax/Application.php @@ -1970,7 +1970,7 @@ class IMP_Ajax_Application extends Horde_Core_Ajax_Application } if (!empty($changes['d'])) { - $result['d'] = array_reverse($changes['d']); + $result['d'] = array_map('strval', array_reverse($changes['d'])); } return $result; -- 2.11.0