X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FXmlSelect.php;h=5d7406c64d3c10045f192a301ab2906db67797cb;hb=67839e2f2bbae9be87adca305643bd55a3544276;hp=89f2f41cb876284d488fd5c6a464d31e6d4b6f2e;hpb=3071f1fad720f1773864621158a0c59b73124896;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/XmlSelect.php b/includes/XmlSelect.php index 89f2f41cb8..5d7406c64d 100644 --- a/includes/XmlSelect.php +++ b/includes/XmlSelect.php @@ -70,11 +70,7 @@ class XmlSelect { * @return string|null */ public function getAttribute( $name ) { - if ( isset( $this->attributes[$name] ) ) { - return $this->attributes[$name]; - } else { - return null; - } + return $this->attributes[$name] ?? null; } /**