fixed some php notice messages

This commit is contained in:
SJ
2012-06-21 10:53:42 +02:00
parent 466d0e383f
commit 26807592b5
2 changed files with 6 additions and 3 deletions

View File

@ -9,6 +9,7 @@ class ModelAuditAudit extends Model {
$sort = "ts";
$order = "DESC";
$sortorder = "ORDER BY ts DESC";
$date1 = $date2 = 0;
$q = '';
@ -40,8 +41,10 @@ class ModelAuditAudit extends Model {
$where .= " AND ref IN (" . $this->append_search_criteria($data['ref'], $arr) . ")";
}
if(isset($data['date1'])) { $date1 = $data['date1']; }
if(isset($data['date2'])) { $date2 = $data['date2']; }
$date = fixup_date_condition('ts', $data['date1'], $data['date2']);
$date = fixup_date_condition('ts', $date1, $date2);
if($date) { $where .= " AND $date "; }