mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
c874437e15
commit
714a9a1820
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,7 @@ if(empty($rows[$userGroup])){
|
|||
if (!empty($userGroup)) {
|
||||
|
||||
$videos = Video::getAllVideosLight('', false, true);
|
||||
|
||||
mysqlBeginTransaction();
|
||||
foreach ($videos as $value) {
|
||||
if($remove){
|
||||
if(UserGroups::deleteVideoGroups($value['id'], $userGroup, false)){
|
||||
|
@ -51,6 +51,7 @@ if (!empty($userGroup)) {
|
|||
}
|
||||
}
|
||||
}
|
||||
mysqlCommit();
|
||||
}
|
||||
clearCache();
|
||||
echo "Bye";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue