diff options
author | Andrey Andreev <narf@bofh.bg> | 2013-01-10 16:38:08 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2013-01-10 16:38:08 +0100 |
commit | 5b5401a78403fce9a32acd912686b5e6cdba15b7 (patch) | |
tree | af7e4529416d209c02ca25add448f4b8118b18d7 /system/libraries/Trackback.php | |
parent | 0b6a492ce1092172b9e3445e674ff9a344d33650 (diff) |
A tiny improvement
Diffstat (limited to 'system/libraries/Trackback.php')
-rw-r--r-- | system/libraries/Trackback.php | 5 |
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)) |