summaryrefslogtreecommitdiff
path: root/api/removeLibrary.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/removeLibrary.php')
-rw-r--r--api/removeLibrary.php5
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) {