From 7c1a1afc2dbfb2e784ca0a441241b7e1a5cad1a5 Mon Sep 17 00:00:00 2001 From: MatthieuLP Date: Mon, 15 May 2023 15:57:00 +0200 Subject: [PATCH] realted to #1916 re-introduced check_pwg_token for sort action --- admin/albums.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/albums.php b/admin/albums.php index fb17efa7d..8c6bd0dc1 100644 --- a/admin/albums.php +++ b/admin/albums.php @@ -25,7 +25,7 @@ list($albums_counter) = pwg_db_fetch_row(pwg_query($query)); // +-----------------------------------------------------------------------+ check_status(ACCESS_ADMINISTRATOR); -if (isset($_GET['delete'])) +if (!empty($_POST) or isset($_GET['delete'])) { check_pwg_token(); }