X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fitems.php;h=2b6fb9a1fe046a1c5b3966dda84cb4520799dcc7;hb=ffeae7e04888a3362d951b0100ad6f377a4efbe4;hp=fa4f3290b142090168fbd36222e13d9f4b75840f;hpb=4530f4ac9db4a3f9d53ef34ee7a185e2b31cc9be;p=friendica.git diff --git a/include/items.php b/include/items.php index fa4f3290b1..2b6fb9a1fe 100644 --- a/include/items.php +++ b/include/items.php @@ -820,7 +820,7 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa // Store the unescaped version $unescaped = $arr; - dbesc_array($arr); + dbm::esc_array($arr, true); logger('item_store: ' . print_r($arr,true), LOGGER_DATA); @@ -829,9 +829,9 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa $r = dbq("INSERT INTO `item` (`" . implode("`, `", array_keys($arr)) - . "`) VALUES ('" - . implode("', '", array_values($arr)) - . "')"); + . "`) VALUES (" + . implode(", ", array_values($arr)) + . ")"); // And restore it $arr = $unescaped;