Skip to content

Commit 8cf2c99

Browse files
committed
Fix CURRENT_DATE in SQL statement
This was introduced in c781905 by the invocation of ‘phpcbf .’. Apparently, phpcbf gets confused by multiline strings.
1 parent 3f959af commit 8cf2c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_his.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function get_courses_by_veranstids($veranstids) {
165165
FROM " . HIS_VERANSTALTUNG . " as veranst
166166
WHERE
167167
veranstid in ($veranstidsstring)
168-
AND (CURRENTDATE - CAST(veranst.zeitstempel AS date)) < $maxage
168+
AND (CURRENT_DATE - CAST(veranst.zeitstempel AS date)) < $maxage
169169
ORDER BY semester, titel;";
170170

171171
$q = pg_query($pgdb->connection, $sql);

0 commit comments

Comments
 (0)