6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7105] Warning displayed on column options page
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__..__.. . . [__)[__][__]| | | | \| || ||___|__|
Comment
> The following warning appears on the config page: > > > > horde/turba/templates/prefs/columnselect.inc > > > > > > Drag columns to re-arrange them. Check a column to enable it. > > > > Warning: Invalid argument supplied for foreach() in > /var/www/html/horde/turba/templates/prefs/columnselect.inc on line 64 > > 1. First Name > > 2. Last Name > > 3. Middle Names > > etc... > > > > To resolve I added a check in my code and submit it for your consideration: > > > > // First the selected columns in their current order. > >>> add>> if ( isset ( $sources[$source] ) ) { > > foreach ($sources[$source] as $column) { > > if (substr($column, 0, 2) == '__' || $column == 'name') { > > continue; > > } > > $checked = isset($selected[$column]) ? ' checked="checked"' : ''; > > $name = htmlspecialchars('turba-prefs-cols-' . $source . '-' . $column); > > echo '<li id="turba-prefs-cols-' . htmlspecialchars($source) . > '_' . $i . '"><input name="' . $name . '" id="' . $name . '" > type="checkbox" class="check > > box"' . $checked . ' />' . > htmlspecialchars($attributes[$column]['label']) . '</li>'; > > $i++; > > } > >>> add>>} > >
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