From: Michael Vogel Date: Sun, 9 Nov 2014 00:13:07 +0000 (+0100) Subject: Some more values that need to be set to avoid SQL warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9172ea224696a9c2b3b540558ae5a3d85c9f25fa;p=friendica.git Some more values that need to be set to avoid SQL warnings. --- diff --git a/include/items.php b/include/items.php index 37532eaf9a..5b27559357 100644 --- a/include/items.php +++ b/include/items.php @@ -1161,6 +1161,11 @@ function item_store($arr,$force_parent = false, $notify = false) { $arr['origin'] = ((x($arr,'origin')) ? intval($arr['origin']) : 0 ); $arr['guid'] = ((x($arr,'guid')) ? notags(trim($arr['guid'])) : get_guid(30)); $arr['network'] = ((x($arr,'network')) ? trim($arr['network']) : ''); + $arr['postopts'] = ((x($arr,'postopts')) ? trim($arr['postopts']) : ''); + $arr['resource-id'] = ((x($arr,'resource-id')) ? trim($arr['resource-id']) : ''); + $arr['event-id'] = ((x($arr,'event-id')) ? intval($arr['event-id']) : 0 ); + $arr['inform'] = ((x($arr,'inform')) ? trim($arr['inform']) : ''); + $arr['file'] = ((x($arr,'file')) ? trim($arr['file']) : ''); if ($arr['plink'] == "") { $a = get_app();