Fix bad logic breaking historylog

This commit is contained in:
Nathan Gray 2014-10-07 20:47:54 +00:00
parent b88102618b
commit 26261e080d

View File

@ -398,12 +398,16 @@ class etemplate_widget_nextmatch extends etemplate_widget
$row_template->run('set_row_value', array('',array('row' => 1), &$_row), true);
$result['data'][$id] = $row;
}
else if (!$template && !get_class($template) != 'etemplate_widget_historylog')
else if (!$template || get_class($template) != 'etemplate_widget_historylog')
{
// Fallback based on widget names
error_log(self::$request->template['name'] . ' had to fallback to run_beforeSendToClient() because it could not find the row' );
$result['data'][$id] = self::run_beforeSendToClient($row);
}
else
{
$result['data'][$id] = $row;
}
}
if ($kUkey !== false) unset($knownUids[$kUkey]);