aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-06-02 19:10:53 +0000
committerMario <mario@mariovavti.com>2023-06-02 21:13:31 +0200
commite0838ff8ab3a3bd6f91a78d99512d17860ff8fa2 (patch)
tree9451980f7d9e5bb8df13e43f34471a34ac5e1065
parent1b0e26841610a4ac954b24cc98ff6690018ca2cd (diff)
downloadvolse-hubzilla-e0838ff8ab3a3bd6f91a78d99512d17860ff8fa2.tar.gz
volse-hubzilla-e0838ff8ab3a3bd6f91a78d99512d17860ff8fa2.tar.bz2
volse-hubzilla-e0838ff8ab3a3bd6f91a78d99512d17860ff8fa2.zip
fix wrong array key
(cherry picked from commit 11a2419c22693fd1546ade79c0b5fa3a9aea9dfd)
-rw-r--r--include/attach.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php
index b7fb17f38..224af12c6 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -963,7 +963,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$args = array( 'source' => $source, 'visible' => $visible, 'resource_id' => $hash, 'album' => $pathname, 'os_syspath' => $os_basepath . $os_relpath, 'os_path' => $os_path, 'display_path' => $display_path, 'filename' => $filename, 'getimagesize' => $gis, 'directory' => $direct, 'options' => $options );
if (array_key_exists('contact_allow', $arr))
$args['contact_allow'] = $arr['contact_allow'];
- if (array_key_exists('contact_deny', $arr))
+ if (array_key_exists('group_allow', $arr))
$args['group_allow'] = $arr['group_allow'];
if (array_key_exists('contact_deny', $arr))
$args['contact_deny'] = $arr['contact_deny'];