Skip to content
Snippets Groups Projects
Commit 70635395 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix pass by reference bug identified by scrutinizer

$pagelog->getRevisions(-1, 1) cannot be passed to array_pop() as the
parameter $array expects a reference.
parent 2d90435a
No related branches found
No related tags found
No related merge requests found
......@@ -551,7 +551,8 @@ function html_revisions($first=0, $media_id = false){
}
}
$pagelog = new PageChangeLog($ID);
$latestrev = array_pop($pagelog->getRevisions(-1, 1));
$latestrev = $pagelog->getRevisions(-1, 1);
$latestrev = array_pop($latestrev);
$href = wl($id,"rev=$latestrev",false,'&');
$summary = $INFO['sum'];
$editor = $INFO['editor'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment