6.0.0-alpha14
7/2/25

[#6865] array_merge() : Argument #2 is not an array in kronolith/lib/Driver/sql.php
Summary array_merge() : Argument #2 is not an array in kronolith/lib/Driver/sql.php
Queue Kronolith
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester rsalmon (at) mbpgroup (dot) com
Created 06/09/2008 (6232 days ago)
Due
Updated 06/10/2008 (6231 days ago)
Assigned 06/10/2008 (6231 days ago)
Resolved 06/10/2008 (6231 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/10/2008 10:41:42 AM Jan Schneider Comment #6
Assigned to Jan Schneider
State ⇒ Resolved
Reply to this comment
Fixed.
06/10/2008 10:40:41 AM CVS Commit Comment #5 Reply to this comment
06/10/2008 10:38:50 AM CVS Commit Comment #4 Reply to this comment
06/10/2008 10:18:49 AM rsalmon (at) mbpgroup (dot) com Comment #3 Reply to this comment
not an array in /var/www/html/horde/kronolith/lib/Driver/sql.php on
line 421, referer:
Can you put a var_dump($calendars); on this line and post the output?
string(5) "ronan"
06/10/2008 08:43:54 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
not an array in /var/www/html/horde/kronolith/lib/Driver/sql.php on
line 421, referer:
Can you put a var_dump($calendars); on this line and post the output?
06/09/2008 09:19:35 AM rsalmon (at) mbpgroup (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ array_merge() : Argument #2 is not an array in kronolith/lib/Driver/sql.php
Queue ⇒ Kronolith
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
When accepting an invit, after clicking 'go' ("accept and add to my 
calendar") I get the following warnings in Apache's log file :

[Mon Jun 09 10:26:04 2008] [error] [client 192.168.1.73] PHP Warning:   
array_merge() [<a 
href='function.array-merge'>function.array-merge</a>]: Argument #2 is 
not an array in /var/www/html/horde/kronolith/lib/Driver/sql.php on 
line 421, referer: 
http://192.168.1.22/horde/imp/message.php?mailbox=INBOX&index=2973

[Mon Jun 09 10:26:04 2008] [error] [client 192.168.1.73] PHP Warning:   
implode() [<a href='function.implode'>function.implode</a>]: Invalid 
arguments passed in /var/www/html/horde/kronolith/lib/Driver/sql.php 
on line 426, referer: 
http://192.168.1.22/horde/imp/message.php?mailbox=INBOX&index=2973



and /tmp/horde.log

Jun 09 10:38:53 HORDE [debug] [kronolith] 
Kronolith_Driver_sql::getByUID(): user = "ronan"; query = "SELECT 
event_id, event_uid, calendar_id, event_description, event_location, 
event_private, event_status, event_attendees, event_keywords, 
event_title, event_category, event_recurcount, event_recurtype, 
event_recurenddate, event_recurinterval, event_recurdays, event_start, 
event_end, event_alarm, event_modified, event_exceptions, 
event_creator_id FROM kronolith_events WHERE event_uid = ? AND 
calendar_id IN (?)"; values = "" [pid 19223 on line 427 of 
"/var/www/html/horde/kronolith/lib/Driver/sql.php"]

Jun 09 10:38:53 HORDE [error] [kronolith] DB Error: syntax error: 
SELECT event_id, event_uid, calendar_id, event_description, 
event_location, event_private, event_status, event_attendees, 
event_keywords, event_title, event_category, event_recurcount, 
event_recurtype, event_recurenddate, event_recurinterval, 
event_recurdays, event_start, event_end, event_alarm, event_modified, 
event_exceptions, event_creator_id FROM kronolith_events WHERE 
event_uid = ? AND calendar_id IN (?) [nativecode=1064 ** You have an 
error in your SQL syntax; check the manual that corresponds to your 
MySQL server version for the right syntax to use near '? AND 
calendar_id IN (?)' at line 1] [pid 19223 on line 431 of 
"/var/www/html/horde/kronolith/lib/Driver/sql.php"]





The event is added and the reply is sent.


Saved Queries