Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor updates #27

Merged
merged 6 commits into from
Jan 20, 2024
Merged

Minor updates #27

merged 6 commits into from
Jan 20, 2024

Conversation

iMattPro
Copy link
Contributor

No description provided.

@iMattPro iMattPro mentioned this pull request Jan 18, 2024
2 tasks
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
@@ -155,7 +155,11 @@ public function add_prefix()

$tag = $this->request->variable('prefix_tag', '', true);
$prefix = $this->manager->add_prefix($tag, $this->forum_id);
$this->log($prefix['prefix_tag'], 'ACP_LOG_PREFIX_ADDED');

if ($prefix)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it not give feedback to the user, if this fails?

@iMattPro
Copy link
Contributor Author

iMattPro commented Jan 20, 2024

No. But feed back is not necessary. Submitting only does 1 things, adds the prefix to the list. If you're leaving it empty and hitting submit nothing is added to the list. It's so obvious that there's no need for feedback.

The real problem is if it is blank now, you get a fatal error. This fixes that

@iMattPro iMattPro merged commit 8471969 into phpbb-extensions:master Jan 20, 2024
33 checks passed
@iMattPro iMattPro deleted the updates branch January 20, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants