Skip to content

Commit 808754e

Browse files
committed
Fix showing empty string on website field
1 parent 16e0d22 commit 808754e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libraries/UserProfile.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ public function getUserId() {
148148
}
149149

150150
public function getWebsite($clean = true) {
151-
if (!is_string($this->website) || !$clean) return $this->website;
151+
if (empty($this->website) || !$clean) {
152+
return $this->website;
153+
}
152154
$value = strtolower($this->website);
153155
if (substr($value, 0, 7) == "http://") {
154156
return substr($value, 7);

0 commit comments

Comments
 (0)