Author Topic: Quota becomes "Array" when moving/deleting  (Read 3819 times)

Offline madz

  • Newbie
  • *
  • Posts: 3
Quota becomes "Array" when moving/deleting
« on: October 15, 2006, 10:26:09 PM »
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:
Code: [Select]
$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:
Code: [Select]
$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 !

Offline marin

  • Jr. Member
  • **
  • Posts: 17
Re: Quota becomes "Array" when moving/deleting
« Reply #1 on: November 06, 2006, 06:25:37 AM »
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 :)