diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2025-05-22 18:43:12 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2025-05-22 19:03:06 +0200 |
commit | daf8531804a2644fa1de57fef6e53bce16be31ae (patch) | |
tree | 3579a9dea9a17a9ea65bd88e700bea76fa217295 /library/HTMLPurifier.autoload.php | |
parent | 961996a0512103b6ce09d49fedf57b9f2a43c88a (diff) | |
download | volse-hubzilla-daf8531804a2644fa1de57fef6e53bce16be31ae.tar.gz volse-hubzilla-daf8531804a2644fa1de57fef6e53bce16be31ae.tar.bz2 volse-hubzilla-daf8531804a2644fa1de57fef6e53bce16be31ae.zip |
Fix undefined var in Module/Invite.php
Fir ref to undefined $ihave variable in the Module\Invite::get() method.
The var was defined later in the method. Also refactor to fix some other
strange logic in the same area while I was there.
- Moved the logic to cound invites currently in use by a channel to a
private function. This should probably be moved further to a Regiter
class once we have these things more in order.
- Changed the logic checking the configuration for how many invites a
channel can use at the same time to just return 4 (the default)
instead of going via 'na' and then checking if it's 'na' to then use
the default value.
- Dropped setting the config to the default if the module is visited by
an admin. That belongs somewhere else.
Diffstat (limited to 'library/HTMLPurifier.autoload.php')
0 files changed, 0 insertions, 0 deletions