mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
wiki MDL-24862 fixed wiki upgrade error (tested for mssql and mysql)
This commit is contained in:
parent
05d7a48dc5
commit
70b082fa6d
1 changed files with 2 additions and 3 deletions
|
@ -143,9 +143,8 @@ function wiki_get_current_version($pageid) {
|
||||||
$sql = "SELECT *
|
$sql = "SELECT *
|
||||||
FROM {wiki_versions}
|
FROM {wiki_versions}
|
||||||
WHERE pageid = ?
|
WHERE pageid = ?
|
||||||
ORDER BY version DESC
|
ORDER BY version DESC";
|
||||||
LIMIT 1";
|
return array_pop($DB->get_records_sql($sql, array($pageid), 0, 1));
|
||||||
return $DB->get_record_sql($sql, array($pageid));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue