6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/21/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9164] PHP 5 + Turba + Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/html/horde/turba/config/sources.php on line 123
*
Your Email Address
*
Spam protection
Enter the letters below:
.___. __..__ .___.. . _/ (__ [__) _/ |_/ ./__..__)| \./__.| \
Comment
> Hello Horde/Turba Team. > > Under PHP 5 (5.2.14) environment, when users (or admin) login , it > will raise the following message - > > Warning: array_merge() [function.array-merge]: Argument #1 is not an > array in /var/www/html/horde/turba/config/sources.php on line 123 > > However, in PHP 4 (4.4.9) environment , it does not raise the above message. > > -------- > > We found that under ./turba/lib/api.php , the function > _turba_listTimeObjectCategories() > function _turba_listTimeObjectCategories() > { > include dirname(__FILE__) . '/../config/attributes.php'; > $categories = array(); > include dirname(__FILE__) . '/../config/sources.php'; > foreach ($attributes as $key => $attribute) { > if ($attribute['type'] == 'monthdayyear' && > !empty($attribute['time_object_label'])) { > > foreach ($cfgSources as $source) { > if (!empty($source['map'][$key])) { > $categories[$key] = $attribute['time_object_label']; > break; > } > } > } > } > > > > return $categories; > } > > when calling to sources.php to get the map, the $conf[ 'sql' ] array > SHOULD already be unset and cause the empty/NULL array to be merged > warning message under PHP 5. > > Please help. > > Thank you for your kind attention. > Regards > Geogre
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