Skip to content

Commit

Permalink
Code enhance
Browse files Browse the repository at this point in the history
  • Loading branch information
iMattPro committed Oct 12, 2021
1 parent 2ed565f commit 741d68d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions acp/abbc3_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class abbc3_module

/**
* Constructor
*
* @throws \Exception
*/
public function __construct()
{
Expand Down
7 changes: 1 addition & 6 deletions core/bbcodes_installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,7 @@ protected function update_bbcode(array $old_bbcode, array $new_bbcode)
*/
protected function add_bbcode(array $bbcode_data)
{
$bbcode_id = $this->get_max_bbcode_id() + 1;

if ($bbcode_id <= NUM_CORE_BBCODES)
{
$bbcode_id = NUM_CORE_BBCODES + 1;
}
$bbcode_id = max($this->get_max_bbcode_id(), NUM_CORE_BBCODES) + 1;

if ($bbcode_id <= BBCODE_LIMIT)
{
Expand Down

0 comments on commit 741d68d

Please sign in to comment.