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