Fix faulty redirect count on domains
This commit is contained in:
parent
5109879ab6
commit
6b9605db73
1 changed files with 5 additions and 1 deletions
|
@ -92,7 +92,11 @@ class Domain extends AbstractModel
|
|||
public function countRedirects()
|
||||
{
|
||||
return AbstractRedirect::countWhere(
|
||||
array(AbstractRedirect::attr('source'), 'LIKE', "%@{$this->getDomain()}%")
|
||||
array(
|
||||
array(AbstractRedirect::attr('source'), 'LIKE', "%@{$this->getDomain()}"),
|
||||
array(AbstractRedirect::attr('destination'), 'LIKE', "%@{$this->getDomain()}")
|
||||
),
|
||||
'OR'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue