Fix to the fix
This commit is contained in:
parent
330828fbdd
commit
c840de0a71
1 changed files with 7 additions and 6 deletions
|
@ -1223,9 +1223,10 @@ class Application_Model_Show
|
||||||
$p_populateUntilDateTime = $date;
|
$p_populateUntilDateTime = $date;
|
||||||
}
|
}
|
||||||
|
|
||||||
$con->prepare("SELECT * FROM cc_show_days WHERE show_id = :show_id");
|
$stmt = $con->prepare("SELECT * FROM cc_show_days WHERE show_id = :show_id");
|
||||||
$con->bindParam(':show_id', $p_showId);
|
$stmt->bindParam(':show_id', $p_showId);
|
||||||
$res = $con->execute()->fetchAll();
|
|
||||||
|
$res = $stmt->execute()->fetchAll();
|
||||||
|
|
||||||
foreach ($res as $showDaysRow) {
|
foreach ($res as $showDaysRow) {
|
||||||
Application_Model_Show::populateShow($showDaysRow, $p_populateUntilDateTime);
|
Application_Model_Show::populateShow($showDaysRow, $p_populateUntilDateTime);
|
||||||
|
@ -1621,17 +1622,17 @@ class Application_Model_Show
|
||||||
$startTimeString = $today_timestamp->format("Y-m-d H:i:s");
|
$startTimeString = $today_timestamp->format("Y-m-d H:i:s");
|
||||||
}
|
}
|
||||||
|
|
||||||
$con->prepare("
|
$stmt = $con->prepare("
|
||||||
SELECT * FROM cc_show_days
|
SELECT * FROM cc_show_days
|
||||||
WHERE last_show IS NULL
|
WHERE last_show IS NULL
|
||||||
OR first_show < :endTimeString AND last_show > :startTimeString");
|
OR first_show < :endTimeString AND last_show > :startTimeString");
|
||||||
|
|
||||||
$stmt = $con->execute(array(
|
$stmt->execute(array(
|
||||||
':endTimeString' => $endTimeString,
|
':endTimeString' => $endTimeString,
|
||||||
':startTimeString' => $startTimeString
|
':startTimeString' => $startTimeString
|
||||||
));
|
));
|
||||||
|
|
||||||
$res = $stm->fetchAll();
|
$res = $stmt->fetchAll();
|
||||||
foreach ($res as $row) {
|
foreach ($res as $row) {
|
||||||
Application_Model_Show::populateShow($row, $p_endTimestamp);
|
Application_Model_Show::populateShow($row, $p_endTimestamp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue