From 2659fe6d7f47905d5dbaef5469e022d5c6b42cf4 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 2 Mar 2012 16:31:48 +0100 Subject: [PATCH] Shortens usage of the ternary operator --- wcfsetup/install/files/lib/data/package/Package.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/package/Package.class.php b/wcfsetup/install/files/lib/data/package/Package.class.php index 1849e31251..e8174c66b8 100644 --- a/wcfsetup/install/files/lib/data/package/Package.class.php +++ b/wcfsetup/install/files/lib/data/package/Package.class.php @@ -87,7 +87,7 @@ class Package extends DatabaseObject { * @return string */ public function getName() { - return WCF::getLanguage()->get($this->instanceName ? $this->instanceName : $this->packageName); + return WCF::getLanguage()->get($this->instanceName ?: $this->packageName); } /** -- 2.20.1