From 7804ae6a7889baab8af87d518fb5a61b30cb20ff Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 25 Jan 2017 11:43:54 -0800 Subject: initialise item['postopts'] for mysql >= 5.7 --- include/items.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index 3b7307239..4813cfb64 100755 --- a/include/items.php +++ b/include/items.php @@ -1512,6 +1512,7 @@ function item_store($arr, $allow_exec = false, $deliver = true) { $arr['allow_gid'] = ((x($arr,'allow_gid')) ? trim($arr['allow_gid']) : ''); $arr['deny_cid'] = ((x($arr,'deny_cid')) ? trim($arr['deny_cid']) : ''); $arr['deny_gid'] = ((x($arr,'deny_gid')) ? trim($arr['deny_gid']) : ''); + $arr['postopts'] = ((x($arr,'postopts')) ? trim($arr['postopts']) : ''); $arr['item_private'] = ((x($arr,'item_private')) ? intval($arr['item_private']) : 0 ); $arr['item_wall'] = ((x($arr,'item_wall')) ? intval($arr['item_wall']) : 0 ); $arr['item_type'] = ((x($arr,'item_type')) ? intval($arr['item_type']) : 0 ); -- cgit v1.2.3