aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-21 18:24:41 -0700
committerfriendica <info@friendica.com>2013-03-21 18:24:41 -0700
commitfe87e7f972ecdc09296cf0a064f978e1bb57a8b8 (patch)
tree44616cc22ba6c76770bf4ee926806a0121c4d828 /include/event.php
parentc3590f6454f856b7890dee7dc2178cef3f09cb11 (diff)
parentfea2f9ac9be03684fc53dd488553c036b988d7eb (diff)
downloadvolse-hubzilla-fe87e7f972ecdc09296cf0a064f978e1bb57a8b8.tar.gz
volse-hubzilla-fe87e7f972ecdc09296cf0a064f978e1bb57a8b8.tar.bz2
volse-hubzilla-fe87e7f972ecdc09296cf0a064f978e1bb57a8b8.zip
Merge pull request #41 from unary/events
small fixes for events
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php
index a178c717a..58ab90e90 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'])
);