Hola miren yo utilizo supernews que esta basado en cutephp
El problema es que me salta este error:
Warning: Division by zero in /home/manumaf/domains/habbotools.com.ar/public_html/sn/inc/functions.inc.php on line 272
El error esta en este codigo:
Código PHP:
function insertSmilies($insert_location, $break_location = FALSE)
{
global $config_http_script_dir, $config_smilies;
$smilies = explode(",", $config_smilies);
foreach($smilies as $smile)
{
$i++; $smile = trim($smile);
$output .= "<a href=\"javascript:insertext(':$smile:','$insert_location')\"><img style=\"border: none;\" alt=\"$smile\" src=\"$config_http_script_dir/data/emoticons/$smile.gif\" /></a>";
if($i%$break_location == 0 and $break_location)
{
$output .= "<br />";
}else{ $output .= " "; }
}
return $output;
}
La linea 272 es:
Código PHP:
if($i%$break_location == 0 and $break_location)
Que tiene de mal?