From aa235fcdcb4ef294bc51a75243f8970e6d832b1c Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 3 Jan 2018 22:00:37 -0700 Subject: [PATCH] Fix minor code oversights from copy/pasting --- pages/punches.php | 4 ++-- pages/shifts.php | 12 +----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/pages/punches.php b/pages/punches.php index ec5441f..8e2839f 100644 --- a/pages/punches.php +++ b/pages/punches.php @@ -1,5 +1,4 @@ - +
@@ -77,6 +76,7 @@ $totalpunches = count($punches); + diff --git a/pages/shifts.php b/pages/shifts.php index fdd54a0..8eeaaf4 100644 --- a/pages/shifts.php +++ b/pages/shifts.php @@ -7,17 +7,6 @@ require_once __DIR__ . '/../required.php'; redirectifnotloggedin(); - - -require_once __DIR__ . "/../lib/dates.php"; -$weekstart = sqldatetime(getstartofweek(WEEK_START)); -$punches = $database->select('punches', ['in', 'out'], ['AND' => ['uid' => $_SESSION['uid'], 'in[>]' => $weekstart]]); -$punchtimes = []; -foreach ($punches as $p) { - $punchtimes[] = [$p['in'], $p['out']]; -} -$totalseconds = sumelapsedtimearray($punchtimes); -$totalpunches = count($punches); ?>
@@ -59,6 +48,7 @@ $totalpunches = count($punches); +