aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-15 15:07:54 +0000
committerMario <mario@mariovavti.com>2021-01-15 15:07:54 +0000
commit9f8a512eb522b0c8ec2a2042945a626e74a6531f (patch)
tree5277857f1764d8aa62fb68cc5756868021f3260d
parent3bcb3221568d80d3ae8dec47d2416b7c1b091304 (diff)
downloadvolse-hubzilla-9f8a512eb522b0c8ec2a2042945a626e74a6531f.tar.gz
volse-hubzilla-9f8a512eb522b0c8ec2a2042945a626e74a6531f.tar.bz2
volse-hubzilla-9f8a512eb522b0c8ec2a2042945a626e74a6531f.zip
only var can be passed by reference
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 2661f76a7..d89290e2f 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4724,7 +4724,7 @@ function webpage_to_namespace($webpage) {
function update_remote_id($channel,$post_id,$webpage,$pagetitle,$namespace,$remote_id,$mid) {
- if(! $post_id)
+ if(! intval($post_id))
return;
$page_type = webpage_to_namespace($webpage);
@@ -4746,7 +4746,7 @@ function update_remote_id($channel,$post_id,$webpage,$pagetitle,$namespace,$remo
// as the entire mid. If it were the post_id the link would be less portable.
IConfig::Set(
- intval($post_id),
+ $post_id,
'system',
$page_type,
($pagetitle) ? $pagetitle : substr($mid,0,16),