Prevented warning for array index if extension files deleted.
authorJohn Kirk <john@civifirst.com>
Sat, 22 Oct 2016 23:30:27 +0000 (23:30 +0000)
committerJohn Kirk <accounts@civifirst.com>
Mon, 9 Oct 2017 18:27:52 +0000 (18:27 +0000)
CRM/Admin/Page/Extensions.php

index 363f35bd7a5e71a26e7b61986069ce232f350ea7..8abf943cc19071381dcb1847a6d5caa2d540d9d0 100644 (file)
@@ -255,8 +255,10 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic {
         $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;