From be477ee7875d44b34da30051cbb8aa777dee6b16 Mon Sep 17 00:00:00 2001 From: Daniel Thee Roperto Date: Tue, 6 Sep 2016 14:26:49 +1000 Subject: [PATCH] Issue #9 - Fixed code standards. --- classes/outagedb.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/outagedb.php b/classes/outagedb.php index 946f156..896a8f3 100644 --- a/classes/outagedb.php +++ b/classes/outagedb.php @@ -162,9 +162,10 @@ final class outagedb { $data = $DB->get_record_sql(' SELECT * FROM {auth_outage} - WHERE (starttime - warningduration <= :now1 AND stoptime >= :now2) + WHERE (starttime - warningduration <= :now1 AND stoptime >= :now2) ORDER BY starttime ASC, stoptime DESC, title ASC - LIMIT 1', + LIMIT 1 + ', ['now1' => $now, 'now2' => $now] );