Fix folder_list handler. Folders table rows are indexed starting with 1.

This commit is contained in:
Aleksander Machniak (Kolab Systems) 2011-06-23 10:31:45 +02:00
parent 60635448fb
commit a69febd59f

View file

@ -137,7 +137,7 @@ class kolab_folders extends rcube_plugin
// Add type-based style for table rows
// See kolab_folders::folder_class_name()
for ($i=0, $cnt=$table->size(); $i<$cnt; $i++) {
for ($i=1, $cnt=$table->size(); $i<=$cnt; $i++) {
$attrib = $table->get_row_attribs($i);
$folder = $attrib['foldername']; // UTF7-IMAP
$data = $folderdata[$folder];