From e0838ff8ab3a3bd6f91a78d99512d17860ff8fa2 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 2 Jun 2023 19:10:53 +0000 Subject: fix wrong array key (cherry picked from commit 11a2419c22693fd1546ade79c0b5fa3a9aea9dfd) --- include/attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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']; -- cgit v1.2.3