Commit 05d6f90a authored by spleshka's avatar spleshka

Fixed php errors in domain include.

parent 2c88a7ca
......@@ -26,13 +26,13 @@ class ExpireDomain implements ExpireInterface {
if ($node->nid) {
$result = db_query("SELECT gid FROM {domain_access} WHERE nid = :nid", array(':nid' => $node->nid));
foreach ($result as $row) {
$domains[$gid] = $row->gid;
$domains[$row->gid] = $row->gid;
}
}
elseif ($node->mail && $node->name) {
$result = db_query("SELECT domain_id FROM {domain_editor} WHERE uid = :uid", array(':uid' => $node->uid));
foreach ($result as $row) {
$domains[$gid] = $row->domain_id;
$domains[$row->domain_id] = $row->domain_id;
}
}
return $domains;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment