Closed (fixed)
Project:
Multiping
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2011 at 15:46 UTC
Updated:
25 Jun 2011 at 00:42 UTC
// Get max creation and modification time
$res_time = db_fetch_object(db_query('SELECT MAX(n.created) AS created, MAX(n.changed) AS changed FROM {node} n ' . implode(' ', $sql_join) . ' WHERE ' . implode(' AND ', $sql_where), $sql_values));
if ($row_time) {
$lastmodified = max($res_time->created, $res_time->changed);
}
else {
$lastmodified = 0;
}
variable $row_time is always undefined and $lastmodified always = 0. $res_time should be replaced by $res_time
Comments
Comment #1
xandeadx commentedsorry, $row_time should be replaced by $res_time
Comment #2
dgtlmoon commentedWell spotted! comitted a fix for this