Skip to content

Commit 117ace4

Browse files
committed
Make cats cute again
1 parent e6c3891 commit 117ace4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Actions/Admin/Boards.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ public function editBoard2(): void
784784
/**
785785
* Used to retrieve data for modifying a board category.
786786
*/
787-
public function modifyCat(): void
787+
public static function modifyCat(): void
788788
{
789789
// Get some information about the boards and the cats.
790790
Category::getTree();
@@ -793,7 +793,7 @@ public function modifyCat(): void
793793
$allowed_sa = ['add', 'modify', 'cut'];
794794

795795
// Check our input.
796-
$_POST['id'] = empty($_POST['id']) ? array_keys((array) Board::$info) : (int) $_POST['id'];
796+
$_POST['id'] = empty($_POST['id']) ? array_keys((array) current(Board::$loaded)) : (int) $_POST['id'];
797797
$_POST['id'] = substr($_POST['id'][1], 0, 3);
798798

799799
// Select the stuff we need from the DB.

0 commit comments

Comments
 (0)