diff --git a/lib/Models/Segment.php b/lib/Models/Segment.php index 146ebacbbe..6a3fee98ab 100644 --- a/lib/Models/Segment.php +++ b/lib/Models/Segment.php @@ -232,7 +232,7 @@ class Segment extends Model { static function bulkTrash($orm) { $count = parent::bulkAction($orm, function($ids) { - parent::rawExecute(join(' ', array( + Segment::rawExecute(join(' ', array( 'UPDATE `' . Segment::$_table . '`', 'SET `deleted_at` = NOW()', 'WHERE `id` IN ('.rtrim(str_repeat('?,', count($ids)), ',').')', diff --git a/lib/Models/Subscriber.php b/lib/Models/Subscriber.php index 609423c11c..c4651dae9c 100644 --- a/lib/Models/Subscriber.php +++ b/lib/Models/Subscriber.php @@ -729,7 +729,7 @@ class Subscriber extends Model { static function bulkTrash($orm) { $count = parent::bulkAction($orm, function($subscriber_ids) { - self::rawExecute(join(' ', array( + Subscriber::rawExecute(join(' ', array( 'UPDATE `' . Subscriber::$_table . '`', 'SET `deleted_at` = NOW()', 'WHERE `id` IN ('.