<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
When I push the button "Check for Spam" i get the following error:<br>
<br>
<small><tt>Warning: Invalid argument supplied for foreach() in
/home/4197/domains/saltando.net/html/wp-content/plugins/akismet/akismet.php
on line 722<br>
<br>
Warning: Cannot modify header information - headers already sent by
(output started at
/home/4197/domains/saltando.net/html/wp-content/plugins/akismet/akismet.php:722)
in /home/4197/domains/saltando.net/html/wp-includes/pluggable.php on
line 770<br>
</tt></small><br>
I solved it adding the text "<tt>if ($moderation != null)</tt>"&nbsp; at the
line 722.<br>
<br>
So the result is:<br>
<tt><br>
...<br>
<small>$moderation = $wpdb-&gt;get_results( "SELECT * FROM
$wpdb-&gt;comments WHERE comment_approved = '0'", ARRAY_A );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>if ($moderation != null)</b><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach ( $moderation as $c ) {</small><br>
...</tt><br>
<br>
I don't know how to send patches to Akismet (cvs, svn??)<br>
<br>
I use WP 2.6 and Akismet 2.1.6<br>
<br>
If anyone can add it for me I will be very happy.<br>
<br>
Thanks,&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; Joan Fisbein<br>
</body>
</html>