Replaces references to self::$variable with Class:$variable for PHP 5.3

hosts
This commit is contained in:
Vlad
2017-02-15 18:27:52 -05:00
parent b90d7894ca
commit 3085ae575a
2 changed files with 2 additions and 2 deletions

View File

@@ -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"'

View File

@@ -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)), ',')