Roundcube Community Forum

 

Quota becomes "Array" when moving/deleting

Started by madz, October 15, 2006, 10:26:09 PM

Previous topic - Next topic

madz

Hi guys, congratulations for the good work, roundcube is an impressive webmail solution compared to the "beta" status !
I found a bug (in beta 2 and svn rev. 360) so i registered there to help: when you delete or move a message, quota image will be replaced by "Array", which is normal because in program/steps/mail the following line (line 76) is wrong:
$commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota()); get_quota returns an array from the imap class.
So I've tried to replace that line:
$commands .= sprintf("this.set_quota('%s');\n", rcmail_quota_display(Array('display' => 'image'))); And the quota image is back.

However i'm not sure of the array parameter (might be in a global that i didn't see).
Keep up the good worl !

marin

Thank you for the patch, it works fine :)
Just to add its file move_del.inc you have to edit in the program/steps/mail dir, although its obvious :)