Skip to content

Commit

Permalink
Merge pull request #825 from fxbt/develop
Browse files Browse the repository at this point in the history
Fix undefined variable $engineRawVersion
  • Loading branch information
mlocati authored Mar 15, 2022
2 parents 38def13 + 4f9c56c commit 91b32e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Gmagick/DriverInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function __construct()
if (preg_match('/^.*?(\d+\.\d+\.\d+(-\d+)?(\s+Q\d+)?)/i', $engineVersion['versionString'], $m)) {
$engineRawVersion = $m[1];
} else {
$engineRawVersion = $engineRawVersion['versionString'];
$engineRawVersion = $engineVersion['versionString'];
}
} else {
$engineRawVersion = '';
Expand Down
2 changes: 1 addition & 1 deletion src/Imagick/DriverInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function __construct()
if (preg_match('/^.*?(\d+\.\d+\.\d+(-\d+)?(\s+Q\d+)?)/i', $engineVersion['versionString'], $m)) {
$engineRawVersion = $m[1];
} else {
$engineRawVersion = $engineRawVersion['versionString'];
$engineRawVersion = $engineVersion['versionString'];
}
} else {
$engineRawVersion = '';
Expand Down

0 comments on commit 91b32e3

Please sign in to comment.