mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
wiki MDL-24862 fixed wiki upgrade error (tested for mssql and mysql)
This commit is contained in:
parent
05d7a48dc5
commit
70b082fa6d
@ -143,9 +143,8 @@ function wiki_get_current_version($pageid) {
|
||||
$sql = "SELECT *
|
||||
FROM {wiki_versions}
|
||||
WHERE pageid = ?
|
||||
ORDER BY version DESC
|
||||
LIMIT 1";
|
||||
return $DB->get_record_sql($sql, array($pageid));
|
||||
ORDER BY version DESC";
|
||||
return array_pop($DB->get_records_sql($sql, array($pageid), 0, 1));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user