get address from addresses

darcs-hash:20080830055640-84dde-2cd151d876f6586d827ecfc38e1b72d1cfb4950d.gz
This commit is contained in:
Evan Prodromou 2008-08-30 01:56:40 -04:00
parent 047db53726
commit 4e3b69014e

View File

@ -136,7 +136,7 @@ class XMPPDaemon {
$this->log(LOG_WARNING, 'Forwarded message without addresses');
return NULL;
}
$address = $xml->sub('address');
$address = $addresses->sub('address');
if (!$address) {
$this->log(LOG_WARNING, 'Forwarded message without address');
return NULL;