mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Update
This commit is contained in:
parent
2ee7942ac0
commit
94a79bc211
2 changed files with 4 additions and 1 deletions
|
@ -104,7 +104,7 @@ php ./cli.php
|
||||||
cd /var/www/html/AVideo/
|
cd /var/www/html/AVideo/
|
||||||
|
|
||||||
|
|
||||||
if [ "${SERVER_NAME}" = "localhost" ] || [ "${SERVER_NAME}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]; then
|
if [[ "${SERVER_NAME}" = "localhost" ]] || [[ "${SERVER_NAME}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
echo "Not executing certbot for ${SERVER_NAME}"
|
echo "Not executing certbot for ${SERVER_NAME}"
|
||||||
else
|
else
|
||||||
echo "entrypoint -- Running certbot for ${SERVER_NAME}"
|
echo "entrypoint -- Running certbot for ${SERVER_NAME}"
|
||||||
|
|
|
@ -745,6 +745,9 @@ class PlayList extends ObjectYPT {
|
||||||
$this->clearEmptyLists();
|
$this->clearEmptyLists();
|
||||||
if(empty($this->getUsers_id()) || !PlayLists::canManageAllPlaylists()){
|
if(empty($this->getUsers_id()) || !PlayLists::canManageAllPlaylists()){
|
||||||
$users_id = User::getId();
|
$users_id = User::getId();
|
||||||
|
if(empty($users_id)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$this->setUsers_id($users_id);
|
$this->setUsers_id($users_id);
|
||||||
}
|
}
|
||||||
$this->showOnTV = intval($this->showOnTV);
|
$this->showOnTV = intval($this->showOnTV);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue