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)) {
|
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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue