diff options
author | Simon Rettberg | 2016-09-09 14:58:15 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-09 14:58:15 +0200 |
commit | f0e1560b8c97a66707a1e34a74336e89001a6580 (patch) | |
tree | 4f19f79c1db9de9d657f6314de464ee283aff618 /modules-available/statistics | |
parent | [statistics] Escape % and _ in LIKE queries, translate user input * and ? to ... (diff) | |
download | slx-admin-f0e1560b8c97a66707a1e34a74336e89001a6580.tar.gz slx-admin-f0e1560b8c97a66707a1e34a74336e89001a6580.tar.xz slx-admin-f0e1560b8c97a66707a1e34a74336e89001a6580.zip |
[statistics] Used simpleQuery instead of queryFirst
Diffstat (limited to 'modules-available/statistics')
-rw-r--r-- | modules-available/statistics/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php index a6ac8037..c8fcaa43 100644 --- a/modules-available/statistics/page.inc.php +++ b/modules-available/statistics/page.inc.php @@ -605,7 +605,7 @@ class Page_Statistics extends Page if (!empty($row['currentuser'])) { $row['username'] = $row['currentuser']; if (strlen($row['currentsession']) === 36 && Module::isAvailable('dozmod')) { - $lecture = Database::simpleQuery("SELECT lectureid, displayname FROM sat.lecture WHERE lectureid = :lectureid", + $lecture = Database::queryFirst("SELECT lectureid, displayname FROM sat.lecture WHERE lectureid = :lectureid", array('lectureid' => $row['currentsession'])); if ($lecture !== false) { $row['currentsession'] = $lecture['displayname']; |