6.0.0-beta13
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/11/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6994] Fatal error in IMP::parseIndicesList method (Unsupported operand types)
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /.___.__ .___\ / >< [__ [__)[__ >< / \[___| \| / \
Comment
> > > The code I pasted in this comment has been already patched, the > original code follows. I also forgot to put the filename: lib/IMP.php > > > > } else { > > /* We are dealing with format #2. */ > > foreach ($indices as $key => $val) { > > if ($GLOBALS['imp_search']->isSearchMbox($key)) { > > $msgList += IMP::parseIndicesList($val); > > } else { > > /* Make sure we don't have any duplicate keys. */ > > $msgList[$key] = is_array($val) ? > array_unique($val) : array($val); > > } > > } > > } > > > >> > >> Some users complain about an error that appears when they reply an email: > >> > >> Fatal error: Unsupported operand types in > >> /usr/share/horde3/imp/lib/IMP.php on line 1143 > >> > >> My guess is that the recursive call in the line 1143 sometimes return > >> false and then the + operation fail: > >> > >> } else { > >> /* We are dealing with format #2. */ > >> foreach ($indices as $key => $val) { > >> if ($GLOBALS['imp_search']->isSearchMbox($key)) { > >> $res = IMP::parseIndicesList($val); > >> if ($res) $msgList += $res; > >> } else { > >> /* Make sure we don't have any duplicate keys. */ > >> $msgList[$key] = is_array($val) ? > >> array_unique($val) : array($val); > >> } > >> } > >> } > >> > >> I attach a patch. > >> > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers