Skip to content

Commit 7bcd0d3

Browse files
authored
Merge pull request #89 from BigKev73/patch-8
Update action.post.php
2 parents 32fd6d4 + f41cd28 commit 7bcd0d3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

action.post.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323
require_once __DIR__ . '/header.php';
2424

2525
$topic_id = Request::getInt('topic_id', 0, 'POST');
26-
//$post_id = Request::getArray('post_id', Request::getArray('post_id', [], 'POST'), 'GET');
27-
$post_id = Request::getInt('post_id', 0, 'GET');
28-
if (Request::hasVar('post_id', 'POST')) {
29-
Request::getArray('post_id', $post_id, 'POST');
30-
}
26+
$post_id = Request::getArray('post_id', Request::getArray('post_id', [], 'POST'), 'GET');
27+
// Change by BigKev73, changed this code back to what this was before as with this following change, trying to permanately delete a deleted post reports no selection made.
28+
//$post_id = Request::getInt('post_id', 0, 'GET');
29+
//if (Request::hasVar('post_id', 'POST')) {
30+
// Request::getArray('post_id', $post_id, 'POST');
31+
//}*/
3132

3233
// !empty($_POST['post_id']) ? $_POST['post_id'] : $post_id;
3334

0 commit comments

Comments
 (0)