Skip to content

Commit

Permalink
Update Update.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheSeg committed Oct 4, 2017
1 parent 1475db8 commit aa80c2c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions libraries/src/Updater/Update.php
Expand Up @@ -264,7 +264,7 @@ public function _startElement($parser, $name, $attrs = array())

// Don't do anything
case 'UPDATES':
// set flags for future possible invalid extension message
// Set flags for future possible invalid extension message
$this->noPhpMatch = true;
$this->noStabilityMatch = true;
$this->noDbMatch = true;
Expand Down Expand Up @@ -310,7 +310,8 @@ public function _endElement($parser, $name)
// Closing update, find the latest version and check
case 'UPDATE':
// Retrieve and save type and name of package from xml update file for invalid extension error message
if (! isset($this->packageName)) {
if (! isset($this->packageName))
{
$this->packageName = $this->currentUpdate->type->_data . ' ' . $this->currentUpdate->name->_data;
}

Expand Down Expand Up @@ -376,7 +377,8 @@ public function _endElement($parser, $name)
// Set to true if the <supported_databases> tag is not set
$dbMatch = true;
}
if ($dbMatch) {
if ($dbMatch)
{
$this->noDbMatch = false;
}

Expand All @@ -387,7 +389,8 @@ public function _endElement($parser, $name)
{
$stabilityMatch = false;
}
else {
else
{
$this->noStabilityMatch = false;
}

Expand Down

0 comments on commit aa80c2c

Please sign in to comment.