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); +