diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-10-27 22:29:56 +0200 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-10-27 22:29:56 +0200 |
commit | 4d4308c46d4f7801c657cc79d2243e1a81831334 (patch) | |
tree | a2e392e0af92b9a3ca3d1b5afb841640276e2294 /api/removeLibrary.php | |
parent | 9f9d66afebc59c6c265c4424f7b8fb36d8876541 (diff) | |
download | mist-4d4308c46d4f7801c657cc79d2243e1a81831334.tar.gz mist-4d4308c46d4f7801c657cc79d2243e1a81831334.tar.bz2 mist-4d4308c46d4f7801c657cc79d2243e1a81831334.zip |
Updated 32 files, added 279 files, deleted 3 files and renamed 14 files (automated)
Diffstat (limited to 'api/removeLibrary.php')
-rw-r--r-- | api/removeLibrary.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/removeLibrary.php b/api/removeLibrary.php index 50b283a..901c343 100644 --- a/api/removeLibrary.php +++ b/api/removeLibrary.php @@ -1,9 +1,10 @@ <?php +header("X-Frame-Options: SAMEORIGIN"); require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; -global $songs; global $_PROFILE; global $library; +global $albums; global $_PROFILE; global $library; -if (!isset($_GET["i"])) return; +if (!isset($_GET["i"]) || !isset($albums[$_GET["i"]])) return; if (in_array($_GET["i"], $library)) { $library = array_filter($library, function ($i) { |