0 ? $blocks['random']['limit'] : 1; $randomquery = dbquery(_STORYQUERY." ORDER BY rand( ) DESC LIMIT $limit"); if($use_tpl && dbnumrows($randomquery) >0) $tpl->newBlock("randomblock"); while($stories = dbassoc($randomquery)) { if(!isset($blocks['random']['allowtags'])) $stories['summary'] = strip_tags($stories['summary']); $stories['summary'] = truncate_text(stripslashes($stories['summary']), (isset($blocks['random']['sumlength']) ? $blocks['random']['sumlength'] : 75)); if(!$use_tpl) $content .= "