File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments