From: Michael M Slusarz Date: Wed, 11 Aug 2010 06:22:42 +0000 (-0600) Subject: Make sure deleted folders are strings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e4f3b1414840833c6f623d7eaa4984a02b1dff69;p=horde.git 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. --- 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;