Skip to content

Commit

Permalink
Prevented warning for array index if extension files deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnFF committed Oct 9, 2017
1 parent fc7f6d9 commit 518d3e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CRM/Admin/Page/Extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ public function formatRemoteExtensionRows($localExtensionRows) {
$row['id']
);
if (isset($localExtensionRows[$info->key])) {
if (version_compare($localExtensionRows[$info->key]['version'], $info->version, '<')) {
$row['is_upgradeable'] = TRUE;
if (array_key_exists('version', $localExtensionRows[$info->key])) {
if (version_compare($localExtensionRows[$info->key]['version'], $info->version, '<')) {
$row['is_upgradeable'] = TRUE;
}
}
}
$remoteExtensionRows[$row['id']] = $row;
Expand Down

0 comments on commit 518d3e4

Please sign in to comment.