[dev] [PATCH] sam *list problems

Chuck Hagenbuch chuck at horde.org
Fri Jul 2 08:30:38 PDT 2004


Quoting Andrew Coleman <mercury at appisolutions.net>:

> Reference from spamd_ftp.php:
> foreach ($store as $attribute => $value) {
>      $output .= $this->_mapAttributeToOption($attribute) . ' ' . 
> trim($value) .
> "\n";
> }
>
> for some reason, $value is being set to an array. trim doesn't work 
> on arrays,
> so you get an array to string conversion error. maybe the form is not
> converting the text box into a whole string, but maybe an array of strings
> delimited by newlines?

Alright, I finally got over my brain block and saw where other drivers were
handling $value as an array. Try what I just committed.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez


More information about the dev mailing list