]> git.mxchange.org Git - friendica.git/commitdiff
Some more values that need to be set to avoid SQL warnings.
authorMichael Vogel <icarus@dabo.de>
Sun, 9 Nov 2014 00:13:07 +0000 (01:13 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 9 Nov 2014 00:13:07 +0000 (01:13 +0100)
include/items.php

index 37532eaf9adc8c00c05db48ea1e52160a75057cd..5b275593576f82de68aa9902f1764347af05000e 100644 (file)
@@ -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();