Skip to content

Commit

Permalink
Merge pull request #58 from breakboyandre/patch-1
Browse files Browse the repository at this point in the history
Изменение функции getId
  • Loading branch information
tooyz authored Nov 27, 2019
2 parents 4686db4 + b4ac9e7 commit 8aaee08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/Fields/MetaField.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public function parseRelationHref(){
public function getId(){
if ( !empty($this->href) ){
$exp = explode("/", $this->href);
return $exp[count($exp) - 1];
$idExp = explode("?", $exp[count($exp) - 1]);
$id = $idExp[0];
return $id;
}
return null;
}
Expand Down

0 comments on commit 8aaee08

Please sign in to comment.