Skip to content

Commit

Permalink
wiki MDL-24862 fixed wiki upgrade error (tested for mssql and mysql)
Browse files Browse the repository at this point in the history
  • Loading branch information
nebgor committed Nov 19, 2010
1 parent 05d7a48 commit 70b082f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mod/wiki/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}

Expand Down

0 comments on commit 70b082f

Please sign in to comment.