From 5b5401a78403fce9a32acd912686b5e6cdba15b7 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 10 Jan 2013 17:38:08 +0200 Subject: A tiny improvement --- system/libraries/Trackback.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'system') diff --git a/system/libraries/Trackback.php b/system/libraries/Trackback.php index 2fb737d6b..ecc7129e3 100644 --- a/system/libraries/Trackback.php +++ b/system/libraries/Trackback.php @@ -268,9 +268,8 @@ class CI_Trackback { } // Build the path - $ppath = isset($target['path']) ? $target['path'] : $url; - - $path = empty($target['query']) ? $ppath : $ppath.'?'.$target['query']; + $path = isset($target['path']) ? $target['path'] : $url; + empty($target['query']) OR $path .= '?'.$target['query']; // Add the Trackback ID to the data string if ($id = $this->get_id($url)) -- cgit v1.2.3-24-g4f1b