Send null for extra images if blank for rider api #424
This commit is contained in:
parent
d59174d721
commit
1e3b621a91
1 changed files with 4 additions and 0 deletions
|
|
@ -2213,6 +2213,10 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
|
||||
protected function getURLExtraImage(Request $req, $filename)
|
||||
{
|
||||
// return null if blank filename
|
||||
if (strlen(trim($filename)) <= 0)
|
||||
return null;
|
||||
|
||||
return $req->getScheme() . '://' . $req->getHttpHost() . $req->getBasePath() . '/uploads/jo_extra/' . $filename;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue