change attach_store to allow a predefined item to accompany a photo

This commit is contained in:
redmatrix
2015-08-26 22:13:20 -07:00
parent 54c88dfae9
commit 9cebd24987
2 changed files with 83 additions and 45 deletions

View File

@@ -758,6 +758,8 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$args['created'] = $created;
$args['edited'] = $edited;
if($arr['item'])
$args['item'] = $arr['item'];
$p = photo_upload($channel,$observer,$args);
if($p['success']) {