From c994438fa85888065f885ee55ec9541f4116989b Mon Sep 17 00:00:00 2001 From: Alexey Stoletniy Date: Thu, 16 Feb 2017 11:22:26 +0300 Subject: [PATCH] Replace more self:: references in closures for PHP 5.3 [MAILPOET-821] --- lib/Models/Segment.php | 2 +- lib/Models/Subscriber.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ('.