Trying to get property of non-object

« MODX Parse Error »

Error : Invalid argument supplied for foreach()
Error information
ErrorType[num] WARNING[2]
File /var/www/public_html/includes/clanattacks.php
Line 52
Source foreach ($data as &$attack) {
Current Snippet XmlClanAttacks

Basic info
REQUEST_URI http://berserk-online.com/raspisanie_klanovyh_voin.html
Resource [118] Расписание Клановых Войн
Referer
User Agent CCBot/2.0 (https://commoncrawl.org/faq/)
IP 18.207.255.49
Current time 2019-12-12 01:40:49

Benchmarks
MySQL 0.0117 s (8 Requests)
PHP 0.1180 s
Total 0.1296 s
Memory 1.5263290405273 mb

Backtrace
DocumentParser->executeParser()
index.php on line 126
DocumentParser->prepareResponse()
manager/includes/document.parser.class.inc.php on line 2140
DocumentParser->parseDocumentSource(string $var1)
manager/includes/document.parser.class.inc.php on line 2217
DocumentParser->evalSnippets(string $var1)
manager/includes/document.parser.class.inc.php on line 2003
DocumentParser->_get_snip_result('XmlClanAttacks')
manager/includes/document.parser.class.inc.php on line 1408
DocumentParser->evalSnippet(string $var1, array $var2)
manager/includes/document.parser.class.inc.php on line 1466
eval()
manager/includes/document.parser.class.inc.php on line 1360
getClanAttacks()
manager/includes/document.parser.class.inc.php(1360) : eval()'d code on line 3