From b2d949ce9a499653bba833913084b0c1406cca7f Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 14 Oct 2015 13:25:58 -0700 Subject: issue #82 - args not defined (should be arr) --- include/attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/attach.php') diff --git a/include/attach.php b/include/attach.php index 0ed1690ec..fc95e3a75 100644 --- a/include/attach.php +++ b/include/attach.php @@ -595,7 +595,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { } } else { - $folder_hash = ((array_key_exists('folder',$args)) ? $args['folder'] : ''); + $folder_hash = ((($arr) && array_key_exists('folder',$arr)) ? $arr['folder'] : ''); } if((! $options) || ($options === 'import')) { -- cgit v1.2.3