summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Trackback.php5
1 files changed, 2 insertions, 3 deletions
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))