diff --git a/app/lib/phast/Parser/XMLParser.inc.php b/app/lib/phast/Parser/XMLParser.inc.php index c7043b0..bfe07a5 100644 --- a/app/lib/phast/Parser/XMLParser.inc.php +++ b/app/lib/phast/Parser/XMLParser.inc.php @@ -163,8 +163,16 @@ } return $str; } + + public function GetAttributeValue($name, $index = 0) : ?string + { + $attr = $this->GetAttribute($name, $index); + if ($attr != null) + return $attr->Value; + return null; + } - public function GetAttribute($name, $index = 0) + public function GetAttribute($name, $index = 0) : ?MarkupAttribute { $i = 0; $last = null;