From 60c4c5044eaea933580e7c5f507e254a71d3e44b Mon Sep 17 00:00:00 2001 From: Roman Parpalak Date: Wed, 3 Apr 2024 00:49:30 +0300 Subject: [PATCH] Fixed case when all flags are false (no flags key in POST array). --- _extensions/s2_blog/blog_ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_extensions/s2_blog/blog_ajax.php b/_extensions/s2_blog/blog_ajax.php index 1bc7bf5c..8f3f7ea6 100644 --- a/_extensions/s2_blog/blog_ajax.php +++ b/_extensions/s2_blog/blog_ajax.php @@ -61,7 +61,7 @@ ($hook = s2_hook('rq_action_save_blog_start')) ? eval($hook) : null; s2_test_user_rights($is_permission); - if (!isset($_POST['page']) || !isset($_POST['flags'])) + if (!isset($_POST['page']) && !isset($_POST['flags'])) die('Error in POST parameters.'); Lang::load('s2_blog', function ()