diff --git a/lib/Models/Model.php b/lib/Models/Model.php index 9cc28c7d6c..e9e269669d 100644 --- a/lib/Models/Model.php +++ b/lib/Models/Model.php @@ -74,7 +74,7 @@ class Model extends \Sudzy\ValidModel { return self::bulkAction($orm, function($ids) use($model) { self::rawExecute(join(' ', array( 'UPDATE `'.$model::$_table.'`', - 'SET `deleted_at`=NOW()', + 'SET `deleted_at` = NOW()', 'WHERE `id` IN ('.rtrim(str_repeat('?,', count($ids)), ',').')' )), $ids diff --git a/lib/Models/Segment.php b/lib/Models/Segment.php index f94a994e46..62156c0d64 100644 --- a/lib/Models/Segment.php +++ b/lib/Models/Segment.php @@ -195,7 +195,7 @@ class Segment extends Model { return parent::bulkAction($orm, function($ids) { parent::rawExecute(join(' ', array( 'UPDATE `'.self::$_table.'`', - 'SET `deleted_at`=NOW()', + 'SET `deleted_at` = NOW()', 'WHERE `id` IN ('.rtrim(str_repeat('?,', count($ids)), ',').')', 'AND `type` = "default"' )), $ids); diff --git a/lib/Models/Subscriber.php b/lib/Models/Subscriber.php index 990ed3927c..735ec51a9d 100644 --- a/lib/Models/Subscriber.php +++ b/lib/Models/Subscriber.php @@ -599,7 +599,7 @@ class Subscriber extends Model { return parent::bulkAction($orm, function($ids) { parent::rawExecute(join(' ', array( 'UPDATE `'.self::$_table.'`', - 'SET `deleted_at`=NOW()', + 'SET `deleted_at` = NOW()', 'WHERE `id` IN ('.rtrim(str_repeat('?,', count($ids)), ',').')', 'AND `wp_user_id` IS NULL' )),