PHP fix: Cannot use object of type DOMNodeList as array

Reply to comment

Very helpful! too