PHP error on no selected lists

Robin Monks - November 15, 2005 - 19:42
Project:Ezmlm
Version:4.6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Chris Johnson
Status:closed
Description

When a user enters a correct address, but does not check a list to subscribe to, the following error returns:

implode(): Bad arguments. in /export/sites/civicspacelabs.com/docs/home/modules/ezmlm/ezmlm.module on line 149.

I have attached a patch that should fix the problem, although I didn't get a chance to test it.

Robin

AttachmentSize
ezmlm.module.patch842 bytes

#1

Chris Johnson - November 15, 2005 - 20:05
Assigned to:Robin Monks» Chris Johnson

Thanks, Robin. I will try to get your patch applied later today.

#2

Chris Johnson - November 15, 2005 - 21:30
Status:needs review» reviewed & tested by the community

Robin's patch did not work, because the list is a series of checkboxes, the $edit['ezmlm_list'] element will always be set and an array.

Rolled a new patch which does fix the problem he found. I will apply the patch to the contrib repository, and it is attached here for convenience.

AttachmentSize
ezmlm.patch2.txt 936 bytes

#3

Chris Johnson - November 15, 2005 - 21:36
Status:reviewed & tested by the community» fixed

Fix applied to CVS. Revision 1.11.2.1 on DRUPAL-4-6 branch.

#4

Anonymous - November 29, 2005 - 21:40
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.