From ed7d233ca272f30c1ac50a1df10086d981b68448 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg <rudi.grinberg@sourcefabric.org> Date: Tue, 4 Sep 2012 14:45:16 -0400 Subject: [PATCH] Changed execute( array(...) ) to multiple bindParam calls. --- airtime_mvc/application/models/Show.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 11709ce32..32ebef4f2 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -1627,12 +1627,15 @@ class Application_Model_Show WHERE last_show IS NULL OR first_show < :endTimeString AND last_show > :startTimeString"); - $stmt->execute(array( - ':endTimeString' => $endTimeString, - ':startTimeString' => $startTimeString - )); + //$stmt->execute(array( + //':endTimeString' => $endTimeString, + //':startTimeString' => $startTimeString + //)); + $stmt->bindParam(':endTimeString', $endTimeString); + $stmt->bindParam(':startTimeString', $startTimeString); - $res = $stmt->fetchAll(); + + $res = $stmt->execute()->fetchAll(); foreach ($res as $row) { Application_Model_Show::populateShow($row, $p_endTimestamp); }