fix tag/source reverts

This commit is contained in:
Shish
2020-01-30 22:33:43 +00:00
parent af733b53ca
commit 73310fa7d5
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class SourceHistory extends Extension
// this is a request to revert to a previous version of the source
if ($user->can(Permissions::EDIT_IMAGE_TAG)) {
if (isset($_POST['revert'])) {
$this->process_revert_request($_POST['revert']);
$this->process_revert_request((int)$_POST['revert']);
}
}
} elseif ($event->page_matches("source_history/bulk_revert")) {