6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/27/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3747] Wrong array variable
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__ . .. ..___. | \[__)| ||\/| | |__/| |__|| | |
Comment
> The following code in lib/Horde/DataTree.php is incorrect: > > > > function set($data, $charset = null) > > { > > $cats = array(); > > $cids = array(); > > foreach ($data as $id => $cat) { > > if (!is_null($charset)) { > > $cat[1] = String::convertCharset($cat[1], $charset); > > } > > $cids[$cat[0]] = $cat[1]; > > $cparents[$cat[0]] = $cat[2]; > > $corders[$cat[0]] = $cat[3]; > > $sorders[$cat[0]] = $id; > > } > > > > It creates the array cats, but then proceeds to use "cat" for the > rest of the code. This causes the PHP fatal error: > > > > PHP Fatal error: Cannot use object of type DB_mysql as array in > /usr/share/psa-horde/lib/Horde/DataTree.php on line 657. > > > > This problem exists in 3.1.1 > >
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