From 3085ae575a7413e80df8d07650821baff13643b9 Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 15 Feb 2017 18:27:52 -0500 Subject: [PATCH] Replaces references to self::$variable with Class:$variable for PHP 5.3 hosts --- 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 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)), ',')