diff options
author | Mario <mario@mariovavti.com> | 2021-01-15 15:07:54 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-15 15:07:54 +0000 |
commit | 9f8a512eb522b0c8ec2a2042945a626e74a6531f (patch) | |
tree | 5277857f1764d8aa62fb68cc5756868021f3260d /include | |
parent | 3bcb3221568d80d3ae8dec47d2416b7c1b091304 (diff) | |
download | volse-hubzilla-9f8a512eb522b0c8ec2a2042945a626e74a6531f.tar.gz volse-hubzilla-9f8a512eb522b0c8ec2a2042945a626e74a6531f.tar.bz2 volse-hubzilla-9f8a512eb522b0c8ec2a2042945a626e74a6531f.zip |
only var can be passed by reference
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 4 |
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), |