6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14816] foreach() on null throws Horde ERROR
*
Your Email Address
*
Spam protection
Enter the letters below:
.___. .. ..___ __. [__ \ /|\/|[__ (__ [___ \/ | |[___.__)
Comment
> The setMapper() method of Horde_Rdo_Query throws an error if the used > mapper has no non-lazy relationships. > > PHP ERROR: Invalid argument supplied for foreach() [pid 5933 on line > 132 of "/usr/local/share/pear/Horde/Rdo/Query.php"] > > Cause is a foreach() loop over the relationships. This is no problem > as such but untroduces an unecessary ERROR into the logs. > > I fixed this for myself by introducing the following statement in > line 130, right before the loop: > > if (is_null($mapper->relationships)) {return $this;} > >
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