Extra check

This commit is contained in:
David Anderson 2019-03-14 16:13:08 +00:00 committed by GitHub
parent 8d3aa30f3e
commit b26dbf8eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ if ( !class_exists('Puc_v4p5_Scheduler', false) ):
public function upgraderProcessComplete($upgrader, $upgradeInfo){
//Sanity check
if ( !is_array($upgradeInfo) || !isset($upgradeInfo['type']) ) {
if ( !is_array($upgradeInfo) || !isset($upgradeInfo['type']) || !isset($upgradeInfo['action']) || 'update' !== $upgradeInfo['action'] ) {
return;
}