6.0.0-beta1
7/10/25

[#2323] Policy insert fails with amavisd_sql backend
Summary Policy insert fails with amavisd_sql backend
Queue Sam
Queue Version HEAD
Type Bug
State Resolved
Priority 3. High
Owners
Requester maddog2k (at) maddog2k (dot) net
Created 07/23/2005 (7292 days ago)
Due
Updated 07/25/2005 (7290 days ago)
Assigned
Resolved 07/25/2005 (7290 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/25/2005 03:27:59 PM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Committed, thanks.
07/23/2005 11:55:31 AM maddog2k (at) maddog2k (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Policy insert fails with amavisd_sql backend
Queue ⇒ Sam
New Attachment: horde_sam-amavisd_sql-fix_policy_insert.diff Download
Reply to this comment
When setting 'horde_auth' => 'full' (haven't tested with 'true' !) in 
backends.php for the amavisd_sql-backend, the insert for the policy 
fails.

It moans that the first-argument of array_merge on line 447 is NOT an array.



The patch simply calls array_merge() on line 447 with 
'array($this->_user)' as the first argument.



Probably a very bad fix, but it works for me :)



Tested on: PHP 5.0.4 under suPHP

Saved Queries