Make sure deleted folders are strings
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 11 Aug 2010 06:22:42 +0000 (00:22 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 11 Aug 2010 06:22:44 +0000 (00:22 -0600)
Or else, javascript functions may fail since Number.prototype does not
have the same method list as String.prototype.

imp/lib/Ajax/Application.php

index 8e25675..71b19d2 100644 (file)
@@ -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;