Trim the rid
This commit is contained in:
parent
eddfab7122
commit
0ff8ca8053
|
@ -704,10 +704,7 @@ class Photo
|
||||||
}
|
}
|
||||||
$image_uri = substr($image_uri, strrpos($image_uri, '/') + 1);
|
$image_uri = substr($image_uri, strrpos($image_uri, '/') + 1);
|
||||||
$image_uri = substr($image_uri, 0, strpos($image_uri, '-'));
|
$image_uri = substr($image_uri, 0, strpos($image_uri, '-'));
|
||||||
if (!strlen($image_uri)) {
|
return trim($image_uri);
|
||||||
return '';
|
|
||||||
}
|
|
||||||
return $image_uri;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user