From 660c658c85cef9bd853d4a9134969c0f8bc6592c Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 25 Jan 2017 11:43:54 -0800 Subject: [PATCH] initialise item['postopts'] for mysql >= 5.7 --- include/items.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/items.php b/include/items.php index 9bd256d58..82cde9911 100755 --- a/include/items.php +++ b/include/items.php @@ -1511,6 +1511,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 );