aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-31 19:06:17 -0700
committerfriendica <info@friendica.com>2012-05-31 19:06:17 -0700
commit93bc29a711637c84a4ffc380078277de89af4e6d (patch)
tree46b41c1f463ab90588f109105c95e85dad8fd432 /include/diaspora.php
parent598fc1ae2104970f2ba91fbf64aa1754aab6322e (diff)
downloadvolse-hubzilla-93bc29a711637c84a4ffc380078277de89af4e6d.tar.gz
volse-hubzilla-93bc29a711637c84a4ffc380078277de89af4e6d.tar.bz2
volse-hubzilla-93bc29a711637c84a4ffc380078277de89af4e6d.zip
turn registration code into a standalone function for re-use
Diffstat (limited to 'include/diaspora.php')
-rw-r--r--include/diaspora.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index e32b6cb06..f7c2c5e8e 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -2059,8 +2059,8 @@ function diaspora_send_followup($item,$owner,$contact,$public_batch = false) {
// return the items ordered by `item`.`id`, in which case the wrong item is chosen as the parent.
// The only item with `parent` and `id` as the parent id is the parent item.
$p = q("select guid from item where parent = %d and id = %d limit 1",
- $item['parent'],
- $item['parent']
+ intval($item['parent']),
+ intval($item['parent'])
);
if(count($p))
$parent_guid = $p[0]['guid'];
@@ -2119,8 +2119,8 @@ function diaspora_send_relay($item,$owner,$contact,$public_batch = false) {
// return the items ordered by `item`.`id`, in which case the wrong item is chosen as the parent.
// The only item with `parent` and `id` as the parent id is the parent item.
$p = q("select guid from item where parent = %d and id = %d limit 1",
- $item['parent'],
- $item['parent']
+ intval($item['parent']),
+ intval($item['parent'])
);
if(count($p))
$parent_guid = $p[0]['guid'];