Hi,
I'm trying to decoupling a little bit the roundcube base to use in a project.
My problem is that running roundcube in console with only the framework works like a charm but when I try to put in a Symfony2 project I have undefined $index on rcube_imap_cache.
The line is this: $this->add_index_row($mailbox, $sort_field, $data, $mbox_data, $exists, $index['modseq']);
On the method: function get_index($mailbox, $sort_field = null, $sort_order = null, $existing = false)
My problem is that I cannot find where $index is defined.
Where is that property is constructed?
Regards.
On 03/16/2015 10:04 PM, Rodrigo Santellan wrote:
My problem is that running roundcube in console with only the framework works like a charm but when I try to put in a Symfony2 project I have undefined $index on rcube_imap_cache.
So, Symphony2 uses different error_reporting setting?
The line is this: $this->add_index_row($mailbox, $sort_field, $data, $mbox_data, $exists, $index['modseq']);
$index comes from get_index_row(). We can replace $index['modseq'] here with:
$index && !empty($index['modseq']) ? $index['modseq'] : $mbox_data['HIGHESTMODSEQ']
which is actually what add_index_row() does.