aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-22 16:52:25 -0700
committerredmatrix <mike@macgirvin.com>2016-09-22 16:52:25 -0700
commit8b8712c15b968542c8fe770d1b99e296642a958c (patch)
tree7151e8112268d1ebc5c60f7acba7fe51f74d7862
parentd1c9701ccfefee7dbe79e9e0a54ce04a387b3233 (diff)
downloadvolse-hubzilla-8b8712c15b968542c8fe770d1b99e296642a958c.tar.gz
volse-hubzilla-8b8712c15b968542c8fe770d1b99e296642a958c.tar.bz2
volse-hubzilla-8b8712c15b968542c8fe770d1b99e296642a958c.zip
issue #524
-rwxr-xr-xinclude/items.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index ba39fd7ac..55bdcf8ef 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1590,6 +1590,9 @@ function item_store($arr, $allow_exec = false, $deliver = true) {
$arr['item_wall'] = ((x($arr,'item_wall')) ? intval($arr['item_wall']) : 0 );
$arr['item_type'] = ((x($arr,'item_type')) ? intval($arr['item_type']) : 0 );
+ // obsolete, but needed so as not to throw not-null constraints on some database driveres
+ $arr['item_flags'] = ((x($arr,'item_flags')) ? intval($arr['item_flags']) : 0 );
+
// only detect language if we have text content, and if the post is private but not yet
// obscured, make it so.