From 939511025eba88a929b221565f473d5e73dfc659 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Tue, 7 Sep 2021 12:28:18 +0200 Subject: [PATCH] Make condition more readable Co-authored-by: Alexander Ebert --- .../install/files/lib/system/package/PackageArchive.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index ee96f8d74f..2c7ff748fb 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -331,7 +331,7 @@ class PackageArchive if ( !isset($data['version']) - || (!Package::isValidVersion($data['version']) && $data['version'] !== '*') + || ($data['version'] !== '*' && !Package::isValidVersion($data['version'])) ) { throw new PackageValidationException( PackageValidationException::INVALID_EXCLUDED_PACKAGE_VERSION_NUBMER, -- 2.20.1