diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-05-18 11:30:29 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-06-13 13:34:20 +0200 |
commit | 62aefadc27002f9d47f391b15520a82d5c3d6ecc (patch) | |
tree | e12e40ba254315f463867b4ff60abda4530c02c2 /boot.php | |
parent | 6e0d0e38321dda6075586c12244c73eff6623565 (diff) | |
download | volse-hubzilla-62aefadc27002f9d47f391b15520a82d5c3d6ecc.tar.gz volse-hubzilla-62aefadc27002f9d47f391b15520a82d5c3d6ecc.tar.bz2 volse-hubzilla-62aefadc27002f9d47f391b15520a82d5c3d6ecc.zip |
Module\Rpost: Add basic test and fix session access.
Just a basic test to ensure that the module `get()` method behaves
somewhat reasonable when no query params are given.
Had to make a small change to the Rpost module itself. Since the
`$_SESSION` superglobal may not always be set (and is not in the test),
use `isset` instead of `array_key_exists` to check if we have saved
query params in the session.
In general, isset is safer than array_key_exists if there's a chance
that the array itself may not exist.
Diffstat (limited to 'boot.php')
0 files changed, 0 insertions, 0 deletions