aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-07 03:36:03 -0800
committerFriendika <info@friendika.com>2010-11-07 03:36:03 -0800
commit944c14b9e68c98daa40e8369f6cce707c2684486 (patch)
tree8d469cf71c99b78be2bfd05f73cf02051302c50b /mod
parentce2f8c939da00f412eff0172c0e4ed4113dac34d (diff)
downloadvolse-hubzilla-944c14b9e68c98daa40e8369f6cce707c2684486.tar.gz
volse-hubzilla-944c14b9e68c98daa40e8369f6cce707c2684486.tar.bz2
volse-hubzilla-944c14b9e68c98daa40e8369f6cce707c2684486.zip
could not delete photos
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 91642229d..a20c13010 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -150,7 +150,7 @@ function photos_post(&$a) {
}
if(($a->argc > 1) && (x($_POST,'delete')) && ($_POST['delete'] == t('Delete Photo'))) {
- $r = q("SELECT `id` FROM `photo` WHERE `uid` = %d AND `resource-id` = '%s' LIMIT 1",
+ $r = q("SELECT `id`, `resource-id` FROM `photo` WHERE `uid` = %d AND `resource-id` = '%s' LIMIT 1",
intval(local_user()),
dbesc($a->argv[1])
);