aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-03 19:47:07 -0700
committerFriendika <info@friendika.com>2010-11-03 19:47:07 -0700
commitb3856a797bcd3e54197f9014eaeef8bc813fc281 (patch)
tree95a720f9ce0a1e00df36c32c43a00cc41abb0cca /include
parenta90e5f438b24e7d150e068acfc6b80ba8bad2597 (diff)
downloadvolse-hubzilla-b3856a797bcd3e54197f9014eaeef8bc813fc281.tar.gz
volse-hubzilla-b3856a797bcd3e54197f9014eaeef8bc813fc281.tar.bz2
volse-hubzilla-b3856a797bcd3e54197f9014eaeef8bc813fc281.zip
show like/dislike when no comments yet, bit of lint
Diffstat (limited to 'include')
-rw-r--r--include/items.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index b016fa180..7daf4042c 100644
--- a/include/items.php
+++ b/include/items.php
@@ -548,6 +548,8 @@ function item_store($arr) {
dbesc_array($arr);
+ logger('item_store: ' . print_r($arr,true), LOGGER_DATA);
+
$r = q("INSERT INTO `item` (`"
. implode("`, `", array_keys($arr))
. "`) VALUES ('"
@@ -576,13 +578,17 @@ function item_store($arr) {
$arr['uri'], // already dbesc'd
intval($arr['uid'])
);
- if(count($r))
+ if(count($r)) {
$current_post = $r[0]['id'];
+ logger('item_store: created item ' . $current_post);
+ }
else
return 0;
if($parent_missing) {
+ logger('item_store: item parent was not found - ignoring item');
+
// perhaps the parent was deleted, but in any case, this thread is dead
// and unfortunately our brand new item now has to be destroyed