mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Merge branch '0.9' into develop
This commit is contained in:
commit
ae600da28b
@ -276,7 +276,7 @@ class OTS_Monster extends DOMDocument
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns look of the monster.
|
* Returns look of the monster.
|
||||||
*
|
*
|
||||||
* @return array Look with all the attributes of the look.
|
* @return array Look with all the attributes of the look.
|
||||||
* @throws DOMException On DOM operation error.
|
* @throws DOMException On DOM operation error.
|
||||||
*/
|
*/
|
||||||
@ -286,6 +286,10 @@ class OTS_Monster extends DOMDocument
|
|||||||
|
|
||||||
$element = $this->documentElement->getElementsByTagName('look')->item(0);
|
$element = $this->documentElement->getElementsByTagName('look')->item(0);
|
||||||
|
|
||||||
|
if (!$element) {
|
||||||
|
return $look;
|
||||||
|
}
|
||||||
|
|
||||||
$look['type'] = $element->getAttribute('type');
|
$look['type'] = $element->getAttribute('type');
|
||||||
$look['typeex'] = $element->getAttribute('typeex');
|
$look['typeex'] = $element->getAttribute('typeex');
|
||||||
$look['head'] = $element->getAttribute('head');
|
$look['head'] = $element->getAttribute('head');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user