- Removed debug function
- Corrected comment
This commit is contained in:
@ -175,7 +175,7 @@ class Export {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getSubscribers($offset, $limit) {
|
function getSubscribers($offset, $limit) {
|
||||||
// if we're not grouping by segments (i.e., resulting query can return the samer
|
// if we're not grouping by segments (i.e., resulting query can return the same
|
||||||
// subscriber but with different segments), we should return only unique subscribers
|
// subscriber but with different segments), we should return only unique subscribers
|
||||||
// by using a GROUP BY clause on subscriber id
|
// by using a GROUP BY clause on subscriber id
|
||||||
$group_by_subscribers = ($this->group_by_segment_option) ? false : true;
|
$group_by_subscribers = ($this->group_by_segment_option) ? false : true;
|
||||||
@ -238,15 +238,11 @@ class Export {
|
|||||||
$subscribers =
|
$subscribers =
|
||||||
$subscribers->where(Subscriber::$_table . '.status', 'subscribed');
|
$subscribers->where(Subscriber::$_table . '.status', 'subscribed');
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
$subscribers = $subscribers
|
$subscribers = $subscribers
|
||||||
->whereNull(Subscriber::$_table . '.deleted_at')
|
->whereNull(Subscriber::$_table . '.deleted_at')
|
||||||
->offset($offset)
|
->offset($offset)
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->findArray();
|
->findArray();
|
||||||
} catch(\PDOException $e) {
|
|
||||||
!ddd(\ORM::get_last_statement());
|
|
||||||
}
|
|
||||||
return $subscribers;
|
return $subscribers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user