We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72724a4 commit c67b26bCopy full SHA for c67b26b
api/schedule.php
@@ -103,6 +103,8 @@ function generateIcal($schedule) {
103
}
104
105
function getScheduleFromId($id) {
106
+ global $dbConn;
107
+
108
// Query to see if the id exists, if we can update the last accessed time,
109
// then the id most definitely exists.
110
$query = "UPDATE schedules SET datelastaccessed = NOW() WHERE id={$id}";
@@ -170,6 +172,8 @@ function getScheduleFromId($id) {
170
172
171
173
174
function getScheduleFromOldId($id) {
175
176
177
$query = "SELECT id FROM schedules WHERE oldid = '{$id}'";
178
$result = $dbConn->query($query);
179
if(!$result || $result->num_rows != 1) {
0 commit comments