]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #7715 from annando/fix-getguid
authorPhilipp <admin+Github@philipp.info>
Tue, 8 Oct 2019 05:01:17 +0000 (07:01 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2019 05:01:17 +0000 (07:01 +0200)
The getGUID function hadn't fetched the GUID from pictures with scale "0"

src/Model/Photo.php

index 34a5acfc9f3694d4e35fce63587aa870b147bd1e..4baef04b9bc0666d85fe8574e603f96c77560e6f 100644 (file)
@@ -690,7 +690,7 @@ class Photo extends BaseObject
                }
 
                $scale = intval(substr($guid, -1, 1));
-               if (empty($scale)) {
+               if (!is_numeric($scale)) {
                        return '';
                }