aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-13 00:30:41 -0700
committerzotlabs <mike@macgirvin.com>2016-10-13 00:30:41 -0700
commit6532972e61a2aa5e8517ebcca3113adb3c8f336d (patch)
tree1bb8dba43eee1c57746987aee05814d135235a2f /include/items.php
parent48026efddfdf063fad7c7bd7a86dd7fc4ca4a0a7 (diff)
downloadvolse-hubzilla-6532972e61a2aa5e8517ebcca3113adb3c8f336d.tar.gz
volse-hubzilla-6532972e61a2aa5e8517ebcca3113adb3c8f336d.tar.bz2
volse-hubzilla-6532972e61a2aa5e8517ebcca3113adb3c8f336d.zip
additional array checking
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index a682fafaa..aaa51fc8b 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2161,7 +2161,10 @@ function item_store_update($arr,$allow_exec = false, $deliver = true) {
}
- dbesc_array($arr);
+ if(! dbesc_array($arr)) {
+ $ret['message'] = 'DB array malformed';
+ return $ret;
+ }
logger('item_store_update: ' . print_r($arr,true), LOGGER_DATA);