PHP: Use short ternary operator (?:) where possible
[lhc/web/wiklou.git] / includes / filerepo / RepoGroup.php
index 7dd8b25..89287af 100644 (file)
@@ -163,7 +163,7 @@ class RepoGroup {
                        }
                }
 
-               $image = $image ? $image : false; // type sanity
+               $image = $image ?: false; // type sanity
                # Cache file existence or non-existence
                if ( $useCache && ( !$image || $image->isCacheable() ) ) {
                        $this->cache->set( $dbkey, $time, $image );