From 9f8a512eb522b0c8ec2a2042945a626e74a6531f Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 15 Jan 2021 15:07:54 +0000 Subject: only var can be passed by reference --- include/items.php | 4 ++-- 1 file 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), -- cgit v1.2.3