diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-11-03 20:34:17 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-11-03 20:42:59 +0100 |
commit | 472484dde041f0ce7e21dd04492821a7d0d385ea (patch) | |
tree | f9823dc7a75f2e1a6a2663f8e7d266e80d42bcaf /Zotlabs | |
parent | 5c3bdbd1e034fb3b01c41c965b3872609e45cb9a (diff) | |
download | volse-hubzilla-472484dde041f0ce7e21dd04492821a7d0d385ea.tar.gz volse-hubzilla-472484dde041f0ce7e21dd04492821a7d0d385ea.tar.bz2 volse-hubzilla-472484dde041f0ce7e21dd04492821a7d0d385ea.zip |
Module\Thing: Don't try to escape field that's not present
The `profile_assign` field is only present if the multiple profiles
feature is enabled.
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Thing.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Thing.php b/Zotlabs/Module/Thing.php index b44b58370..a77081741 100644 --- a/Zotlabs/Module/Thing.php +++ b/Zotlabs/Module/Thing.php @@ -55,10 +55,13 @@ class Thing extends \Zotlabs\Web\Controller { $name = escape_tags($_POST['term']); $verb = escape_tags($_POST['verb']); $activity = intval($_POST['activity']); - $profile_guid = escape_tags($_POST['profile_assign']); $url = $_POST['url']; $photo = $_POST['img']; + $profile_guid = isset($_POST['profile_assign']) + ? escape_tags($_POST['profile_assign']) + : null; + $hash = new_uuid(); $verbs = obj_verbs(); |