diff --git a/install/addAllVideosIntoPPV.php b/install/addAllVideosIntoPPV.php index 454dbdc199..cb97636c05 100644 --- a/install/addAllVideosIntoPPV.php +++ b/install/addAllVideosIntoPPV.php @@ -31,7 +31,7 @@ if(count($plans) == 1){ } echo "Will add in the PPV plan {$ppv_plans_id}".PHP_EOL; -if (!empty($userGroup)) { +if (!empty($ppv_plans_id)) { $videos = Video::getAllVideosLight('', false, true);