6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/21/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14950] count(): Parameter must be an array or an object that implements Countable on line 980 of Compose.php
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__ ..___. . [__)[__) |[__ |_/ | \| \__|[___| \
Comment
> Hi, > > I had the same error and created this small patch: > > diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php > index fca3a4d..4c48cf5 100755 > --- a/imp/lib/Compose.php > +++ b/imp/lib/Compose.php > @@ -977,7 +977,7 @@ class IMP_Compose implements ArrayAccess, > Countable, IteratorAggregate > ($prefs->isLocked('save_sent_mail') && > $prefs->getValue('save_sent_mail')))) { > /* Keep Bcc: headers on saved messages. */ > - if (count($header['bcc'])) { > + if (is_array($header['bcc']) && count($header['bcc'])) { > $headers->addHeader('Bcc', $header['bcc']); > }
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