this is the code in core
and this is the error am getting on a few sites from ppl .
Warning: substr_count() [function.substr-count]: Empty substring in /home/badgirls/public_html/web/core.php on line 1485 Warning: substr_count() [function.substr-count]: Empty substring in /home/badgirls/public_html/web/core.php on line 1485
anyone got a fix for this bug.
think its wen they send inboxes and must have a word that in the blocked list or sumat ,
Code:
///////////////////////////////////////////Is site blocked
function isblocked($str,$sender)
{
if(ismod($sender))
{
return false;
}
$str = str_replace(" ","",$str);
$str = strtolower($str);
$res = mysql_query("SELECT site FROM dave_blockedsite");
while ($row = mysql_fetch_array($res))
{
$sites[] = $row[0];
}
for($i=0;$i<count($sites);$i++)
{
$nosf = substr_count($str,$sites[$i]); <<<<<<<<<<<<<<<< line 1485
if($nosf>0)
{
return true;
}
}
return false;
}
Warning: substr_count() [function.substr-count]: Empty substring in /home/badgirls/public_html/web/core.php on line 1485 Warning: substr_count() [function.substr-count]: Empty substring in /home/badgirls/public_html/web/core.php on line 1485
anyone got a fix for this bug.
think its wen they send inboxes and must have a word that in the blocked list or sumat ,
Comment