summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-01-10 16:38:08 +0100
committerAndrey Andreev <narf@bofh.bg>2013-01-10 16:38:08 +0100
commit5b5401a78403fce9a32acd912686b5e6cdba15b7 (patch)
treeaf7e4529416d209c02ca25add448f4b8118b18d7 /system/libraries
parent0b6a492ce1092172b9e3445e674ff9a344d33650 (diff)
A tiny improvement
Diffstat (limited to 'system/libraries')
-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))