Little error/bug in mainfile.php function headlines and fix
Date: Monday, January 12 @ 22:22:44 CET Topic: Bug Fixes
I Found a little problem with headlines refresh time in mainfile.php
function headlines($bid, $cenbox=0) {
global $prefix, $db;
$sql = "SELECT title, content, url, refresh, time FROM ".$prefix."_blocks WHERE bid='$bid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$title = $row[title];
$content = $row[content];
$url = $row[url];
$refresh = $row[refresh];
$otime = $row[otime]; // this is the error
to fix
change $otime = $row[otime];
to
$otime = $row[time];
This error was found by
Marcus Maciel(ScOrP|On) - www.underlinux.com.br
and
Augusto Campos - www.brlinux.org
|
|