aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-17 11:14:18 +1000
committerredmatrix <redmatrix@redmatrix.me>2015-06-17 11:14:18 +1000
commitec54111e6b0000f87323b2b0a26756da3b41f146 (patch)
tree136e821b2438bb722734e1bcad0bf1e9ad6e505c /include
parent24befa2197d3dfc9ebeac10b307eaddcc7dd5cf1 (diff)
parent40ee0d41dc977584a78307f151773137c7f0744d (diff)
downloadvolse-hubzilla-ec54111e6b0000f87323b2b0a26756da3b41f146.tar.gz
volse-hubzilla-ec54111e6b0000f87323b2b0a26756da3b41f146.tar.bz2
volse-hubzilla-ec54111e6b0000f87323b2b0a26756da3b41f146.zip
Merge pull request #349 from git-marijus/master
make photo upload work for remote channels with perms
Diffstat (limited to 'include')
-rw-r--r--include/photos.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/photos.php b/include/photos.php
index 1672e310a..ca8c53679 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -452,13 +452,13 @@ function photos_album_rename($channel_id, $oldname, $newname) {
function photos_album_get_db_idstr($channel_id, $album, $remote_xchan = '') {
if ($remote_xchan) {
- $r = q("SELECT distinct resource_id as from photo where xchan = '%s' and uid = %d and album = '%s' ",
+ $r = q("SELECT distinct resource_id from photo where xchan = '%s' and uid = %d and album = '%s' ",
dbesc($remote_xchan),
intval($channel_id),
dbesc($album)
);
} else {
- $r = q("SELECT distinct resource_id from photo where uid = %d and album = '%s' ",
+ $r = q("SELECT distinct resource_id from photo where uid = %d and album = '%s' ",
intval($channel_id),
dbesc($album)
);