X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FXmlSelect.php;h=5d7406c64d3c10045f192a301ab2906db67797cb;hb=0818070c59eb4e8330496796b943951c01c7a573;hp=89f2f41cb876284d488fd5c6a464d31e6d4b6f2e;hpb=64b83bdb3afd0ee4f8fc1893a865409c198e601e;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; } /**