Update UserController.php

This commit is contained in:
Julian Prieber 2023-02-16 14:25:37 +01:00
parent 65766efd71
commit 5622b4fe65
1 changed files with 2 additions and 2 deletions

View File

@ -17,6 +17,7 @@ use App\Models\User;
use App\Models\Button; use App\Models\Button;
use App\Models\Link; use App\Models\Link;
use App\Models\LinkType; use App\Models\LinkType;
use App\Models\UserData;
//Function tests if string starts with certain string (used to test for illegal strings) //Function tests if string starts with certain string (used to test for illegal strings)
@ -542,7 +543,6 @@ class UserController extends Controller
$customBackground = $request->file('image'); $customBackground = $request->file('image');
if (!empty($customBackground)) { if (!empty($customBackground)) {
// Delete existing image
$directory = base_path('/img/background-img/'); $directory = base_path('/img/background-img/');
$files = scandir($directory); $files = scandir($directory);
$pathinfo = "error.error"; $pathinfo = "error.error";