From: Matthias Schmidt Date: Fri, 2 Mar 2012 15:31:48 +0000 (+0100) Subject: Shortens usage of the ternary operator X-Git-Tag: 2.0.0_Beta_1~1257^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2659fe6d7f47905d5dbaef5469e022d5c6b42cf4;p=GitHub%2FWoltLab%2FWCF.git Shortens usage of the ternary operator --- 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); } /**