@@ -261,7 +261,8 @@ class Subscription extends ActiveRecordCommon | |||
public static function addAll($date, $force = false) | |||
{ | |||
$distribution = Distribution::searchOne([ | |||
'date' => date('Y-m-d', strtotime($date)) | |||
'date' => date('Y-m-d', strtotime($date)), | |||
'id_producer' => Producer::getId(), | |||
]) ; | |||
if ($distribution) { |