Skip to content

Commit

Permalink
5695 added check for empty status, update to Installed if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Jul 2, 2016
1 parent f0bc988 commit 3fbb00a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mods/_standard/patcher/classes/Patch.class.php
Expand Up @@ -141,8 +141,10 @@ function applyPatch()
if (strlen(trim($this->patch_array['sql'])) > 0) $this->runSQL();

// Start applying patch
$this->createPatchesRecord($this->patch_summary_array);

if($this->createPatchesRecord($this->patch_summary_array)){
$updateInfo = array("status"=>"Installed");
updatePatchesRecord($this->patch_id, $updateInfo);
}
// if no file action defined, update database and return true
if (!is_array($this->patch_array[files]))
{
Expand Down

0 comments on commit 3fbb00a

Please sign in to comment.