mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 01:16:26 +02:00
Check method exists prior to calling meetsRequirements
As Grav might not yet have been updated
This commit is contained in:
@@ -179,7 +179,7 @@ class Gpm
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$upgrader->meetsRequirements()) {
|
||||
if (method_exists($upgrader, 'meetsRequirements') && !$upgrader->meetsRequirements()) {
|
||||
$error = [];
|
||||
$error[] = '<p>Grav has increased the minimum PHP requirement.<br />';
|
||||
$error[] = 'You are currently running PHP <strong>' . PHP_VERSION .'</strong>';
|
||||
|
||||
Reference in New Issue
Block a user