diff --git a/deploy/apache/docker-entrypoint b/deploy/apache/docker-entrypoint index 5ea80433a1..d565073d75 100644 --- a/deploy/apache/docker-entrypoint +++ b/deploy/apache/docker-entrypoint @@ -104,7 +104,7 @@ php ./cli.php 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}" else echo "entrypoint -- Running certbot for ${SERVER_NAME}" diff --git a/objects/playlist.php b/objects/playlist.php index deda4a1f0f..113d2cce75 100644 --- a/objects/playlist.php +++ b/objects/playlist.php @@ -745,6 +745,9 @@ class PlayList extends ObjectYPT { $this->clearEmptyLists(); if(empty($this->getUsers_id()) || !PlayLists::canManageAllPlaylists()){ $users_id = User::getId(); + if(empty($users_id)){ + return false; + } $this->setUsers_id($users_id); } $this->showOnTV = intval($this->showOnTV);