Commit f92aedb9 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

applying partnershop if one would be removed by duplicate check

parent d9f48a19
......@@ -408,10 +408,20 @@ class MetaGer
if (isset($arr[$link])) {
$arr[$link]->gefVon[] = $this->results[$i]->gefVon[0];
$arr[$link]->gefVonLink[] = $this->results[$i]->gefVonLink[0];
// The duplicate might already be an adgoal partnershop
if($this->results[$i]->partnershop){
# Den Link hinzufügen:
$arr[$link]->logo = $this->results[$i]->logo;
$arr[$link]->image = $this->results[$i]->image;
$arr[$link]->link = $this->results[$i]->link;
$arr[$link]->partnershop = $this->results[$i]->partnershop;
}
array_splice($this->results, $i, 1);
$i--;
if ($arr[$link]->new === true || $this->results[$i]->new === true) {
$arr[$link]->changed = true;
$arr[$link]->changed = true;
}
} else {
$arr[$link] = &$this->results[$i];
......
Supports Markdown
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