- echo "<td><input type=\"checkbox\" value='" . base64_encode($sf['name']).",".base64_encode($sf['match_type']).",".base64_encode($sf['spamfilter_targets']).",".base64_encode($sf['ban_action']) . "' name=\"sf[]\"></td>";
- echo "<td>".$sf['name']."</td>";
- echo "<td>".$sf['type_string']."</td>";
- echo "<td>".$sf['set_by']."</td>";
- echo "<td>".$sf['set_at_string']."</td>";
- echo "<td>".$sf['expire_at_string']."</td>";
- echo "<td>".$sf['duration_string']."</td>";
- echo "<td>".$sf['match_type']."</td>";
- echo "<td>".$sf['ban_action']."</td>";
- echo "<td>".$sf['ban_duration_string']."</td>";
- for ($i = 0, $targs = ""; ($c = $sf['spamfilter_targets'][$i]); $i++)
+ echo "<td><input type=\"checkbox\" value='" . base64_encode($sf->name).",".base64_encode($sf->match_type).",".base64_encode($sf->spamfilter_targets).",".base64_encode($sf->ban_action) . "' name=\"sf[]\"></td>";
+ echo "<td>".$sf->name."</td>";
+ echo "<td>".$sf->type_string."</td>";
+ echo "<td>".$sf->set_by."</td>";
+ echo "<td>".$sf->set_at_string."</td>";
+ echo "<td>".$sf->expire_at_string."</td>";
+ echo "<td>".$sf->duration_string."</td>";
+ echo "<td>".$sf->match_type."</td>";
+ echo "<td>".$sf->ban_action."</td>";
+ echo "<td>".$sf->ban_duration_string."</td>";
+ for ($i = 0, $targs = ""; $i < strlen($sf->spamfilter_targets); $i++)