From 4f9c56c8789c640bedcc901e1eafb33ccd3d6080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Godfrin?= Date: Tue, 15 Mar 2022 15:59:55 +0100 Subject: [PATCH] Fix undefined variable --- src/Gmagick/DriverInfo.php | 2 +- src/Imagick/DriverInfo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gmagick/DriverInfo.php b/src/Gmagick/DriverInfo.php index 2ed7a897..8cb5dfcf 100644 --- a/src/Gmagick/DriverInfo.php +++ b/src/Gmagick/DriverInfo.php @@ -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 = ''; diff --git a/src/Imagick/DriverInfo.php b/src/Imagick/DriverInfo.php index bd95ee6f..c839b9c1 100644 --- a/src/Imagick/DriverInfo.php +++ b/src/Imagick/DriverInfo.php @@ -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 = '';