Permalink
Browse files

Strict PHP stuff

  • Loading branch information...
1 parent 982e985 commit 50bd5c0466f6dcef4749d01bbd8c823a1011da64 @skinkie skinkie committed Jan 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 overzicht.php
View
@@ -8,11 +8,12 @@
for ($i=0; $i<=60; $i++) {
$start = $now;
$end = $now;
+ $curday = date('N', $now);
$stmt = $dbh->prepare('SELECT sum(content_text.duration) AS totaal FROM content_run, content_text WHERE content_run.enabled = 1 AND (content_run.day = 0 or content_run.day = :curday) AND content_run.start <= :start AND content_run.eind >= :end AND content_text.contentid = content_run.contentid;');
$stmt->bindParam(':start', $start, PDO::PARAM_INT);
$stmt->bindParam(':end', $end, PDO::PARAM_INT);
- $stmt->bindParam(':curday', date('N', $now), PDO::PARAM_INT);
+ $stmt->bindParam(':curday', $curday, PDO::PARAM_INT);
$stmt->execute();
$result = $stmt->fetchAll();

0 comments on commit 50bd5c0

Please sign in to comment.