Skip to content

Commit f41cd28

Browse files
authored
Update action.post.php
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.
1 parent e036458 commit f41cd28

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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)