diff options
author | redmatrix <git@macgirvin.com> | 2016-06-22 19:08:59 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-06-22 19:08:59 -0700 |
commit | 1267d995ef031f6ecf4d1f1951a700dfdcbf6c8d (patch) | |
tree | 4a17682af3080965581acf46b32becbab29ea2ce /Zotlabs/Module/Photo.php | |
parent | ec8091a102b9cb2f8f47ef87982533bcd5ba9886 (diff) | |
download | volse-hubzilla-1267d995ef031f6ecf4d1f1951a700dfdcbf6c8d.tar.gz volse-hubzilla-1267d995ef031f6ecf4d1f1951a700dfdcbf6c8d.tar.bz2 volse-hubzilla-1267d995ef031f6ecf4d1f1951a700dfdcbf6c8d.zip |
db statement debugging
Diffstat (limited to 'Zotlabs/Module/Photo.php')
-rw-r--r-- | Zotlabs/Module/Photo.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 92c9ac3c0..5148c4a94 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -62,7 +62,7 @@ class Photo extends \Zotlabs\Web\Controller { intval($uid), intval(PHOTO_PROFILE) ); - if(count($r)) { + if($r) { $data = dbunescbin($r[0]['content']); $mimetype = $r[0]['mimetype']; } @@ -79,7 +79,7 @@ class Photo extends \Zotlabs\Web\Controller { * Other photos */ - /* Check for a cookie to indicate display pixel density, in order to detect high-resolution + /* Check for a cookie to indicate display pixel density, in order to detect high-resolution displays. This procedure was derived from the "Retina Images" by Jeremey Worboys, used in accordance with the Creative Commons Attribution 3.0 Unported License. Project link: https://github.com/Retina-Images/Retina-Images |