6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/12/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13268] Kolab_Storage: PHP error on modifying contact picture
*
Your Email Address
*
Spam protection
Enter the letters below:
. __..__ .__..__. |(__ [ __| |[__] \__|.__)[_./|__\| |
Comment
>> IIRC those are different data structures in different situations. How >> did you actually trigger an error with the current code? Editing a >> contact picture with the Horde_Form image editing buttons worked >> without problems. > > while editing works fine and there's only one attachment in the > produced email, > it triggers the given warning for me every time on modification > (using git "master"). > > The foreach() calls I provided are in the same function "store()", so > it's the same datastructure. > To me it looks like $object[_attachments[]['id']] is used before it's > actually built. > > If you look at the code, the second iteration is filling in the 'id' field. > -------------------------------------------------------- > foreach ($object['_attachments'] as $id => $attachment) { > $attachments['id'][] = $id; > -------------------------------------------------------- >
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