Skip to content

Commit

Permalink
[4.0] Fix php notice when no version_id specified (#29693)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Taylor committed Jun 19, 2020
1 parent 5c9dc94 commit d9cfd73
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ public function getItem($pk = null)
$table = $this->getTable('ContentHistory');
$versionId = Factory::getApplication()->input->getInt('version_id');

if (!$table->load($versionId))
if (!$versionId || \is_array($versionId) || !$table->load($versionId))
{
return false;
}
Expand Down

0 comments on commit d9cfd73

Please sign in to comment.