[dev] [PATCH] sam *list problems

Andrew Coleman mercury at appisolutions.net
Thu Jul 1 22:10:00 PDT 2004


Quoting Chuck Hagenbuch <chuck at horde.org>:
> Right - but none of the other backends seem to have this problem. Why 
> does the
> ftp driver? My SQL-based setup works just fine. Which is why I'm 
> confused that
> you're seeing this.
>
> -chuck
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?

--
Andrew Coleman
mercury at appisolutions.net
/-\   The ASCII
\ /   Ribbon Campaign
  X    Against HTML
/ \   E-Mail!



More information about the dev mailing list