1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2023-11-13 09:42:37 -03:00
parent c874437e15
commit 714a9a1820

View file

@ -35,7 +35,7 @@ if(empty($rows[$userGroup])){
if (!empty($userGroup)) { if (!empty($userGroup)) {
$videos = Video::getAllVideosLight('', false, true); $videos = Video::getAllVideosLight('', false, true);
mysqlBeginTransaction();
foreach ($videos as $value) { foreach ($videos as $value) {
if($remove){ if($remove){
if(UserGroups::deleteVideoGroups($value['id'], $userGroup, false)){ if(UserGroups::deleteVideoGroups($value['id'], $userGroup, false)){
@ -51,6 +51,7 @@ if (!empty($userGroup)) {
} }
} }
} }
mysqlCommit();
} }
clearCache(); clearCache();
echo "Bye"; echo "Bye";