6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11949] PHP ERROR: Invalid argument supplied for foreach()
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.. .. ..__.. . | | || |[__]|__| | |__||__|| || |
Comment
> On two places of the code there is used foreach without checking > whether the argument is indeed an array. Depending on the system > configuration, it leads to the following errors: > PHP ERROR: Invalid argument supplied for foreach() [pid 10297 on line > 59 of "/usr/share/php/Horde/Core/Db/Migration.php"] > PHP ERROR: Invalid argument supplied for foreach() [pid 10286 on line > 203 of "/usr/share/php/Horde/Config.php"] > > The solution is simple - in both cases just add the check whether the > variable is unempty and is an array.
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