diff --git a/Dockerfile b/Dockerfile index 971383b..a62fb3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,6 @@ RUN apt-get update && apt-get install -y \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-install -j$(nproc) gd -COPY opcache.ini /usr/local/etc/php/conf.d/opcache.ini COPY docker/000-default.conf /etc/apache2/sites-available/000-default.conf RUN a2enmod rewrite diff --git a/user.php b/user.php index 24f429c..57d858c 100644 --- a/user.php +++ b/user.php @@ -30,6 +30,7 @@ } header('Location: user.php?user_id=' . $_GET['block_user']); + return; } @@ -39,7 +40,7 @@ header('Location: index.php'); } -$idUser = new User(($_GET['user_id'])); +$idUser = new User($_GET['user_id']); $accent_color = getAverage($idUser->getAvatarURL());