From 11a2419c22693fd1546ade79c0b5fa3a9aea9dfd Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 2 Jun 2023 19:10:53 +0000 Subject: fix wrong array key --- 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 4465a67fe..1de5f5a67 100644 --- a/include/attach.php +++ b/include/attach.php @@ -974,7 +974,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