Skip to content

Commit

Permalink
Fixed case when all flags are false (no flags key in POST array).
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed Apr 2, 2024
1 parent 0d240cd commit 60c4c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _extensions/s2_blog/blog_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 60c4c50

Please sign in to comment.