aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-21 18:29:08 -0700
committerfriendica <info@friendica.com>2013-03-21 18:29:08 -0700
commit0999b88a486b2b392bf3b785d3da7ea1652ab1c2 (patch)
treeeb70621f682c6ec71cc4f10b774b4fb8c703c3db /include
parentddf5bf8968a12501939cd37898d303967b748600 (diff)
parentfe87e7f972ecdc09296cf0a064f978e1bb57a8b8 (diff)
downloadvolse-hubzilla-0999b88a486b2b392bf3b785d3da7ea1652ab1c2.tar.gz
volse-hubzilla-0999b88a486b2b392bf3b785d3da7ea1652ab1c2.tar.bz2
volse-hubzilla-0999b88a486b2b392bf3b785d3da7ea1652ab1c2.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'include')
-rw-r--r--include/event.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php
index 70257968f..29ada2e96 100644
--- a/include/event.php
+++ b/include/event.php
@@ -169,6 +169,8 @@ function event_store($arr) {
return $r[0]['id'];
}
+ $event_hash = $r[0]['event_hash'];
+
// The event changed. Update it.
$r = q("UPDATE `event` SET
@@ -205,7 +207,7 @@ function event_store($arr) {
);
$r = q("SELECT * FROM item left join xchan on author_xchan = xchan_hash WHERE resource_id = '%s' AND resource_type = 'event' and uid = %d LIMIT 1",
- intval($r[0]['event_hash']),
+ dbesc($event_hash),
intval($arr['uid'])
);