Skip to content

Commit 5c4d7c2

Browse files
committed
Removed unnecessary "isset" #17
Because "empty" checks whether the variable is set
1 parent ab34cce commit 5c4d7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Embed/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public function setPath ($path) {
416416
* Return the url path
417417
*/
418418
public function getPath ($file = false) {
419-
$path = isset($this->info['path']) && !empty($this->info['path']) ? '/'.implode('/', $this->info['path']).'/' : '/';
419+
$path = !empty($this->info['path']) ? '/'.implode('/', $this->info['path']).'/' : '/';
420420

421421
if ($file && !empty($this->info['file'])) {
422422
$path .= $this->info['file'];

0 commit comments

Comments
 (0)