Skip to content

Commit 97bdb63

Browse files
committed
Updated to version 1.2.0
1 parent 4fbf4f3 commit 97bdb63

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.2.0 - 2018-02-22
4+
5+
* Bug fixed on the `setUrlParams` method.
6+
37
## 1.1.9 - 2018-01-07
48

59
* The tests were fixed.

src/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static function getUriMethods()
142142
*/
143143
public static function setUrlParams($url = false)
144144
{
145-
$url = $url ?: self::getCurrentPage();
145+
$url = $url !== false ? $url : self::getCurrentPage();
146146

147147
if (strpos($url, '?') == false && strpos($url, '&') != false) {
148148
$url = preg_replace('/&/', '?', $url, 1);

0 commit comments

Comments
 (0)