]> git.mxchange.org Git - friendica.git/commitdiff
could not delete photos
authorFriendika <info@friendika.com>
Sun, 7 Nov 2010 11:36:03 +0000 (03:36 -0800)
committerFriendika <info@friendika.com>
Sun, 7 Nov 2010 11:36:03 +0000 (03:36 -0800)
mod/photos.php

index 91642229d4b39e41593e5bc6f56952ac91f13206..a20c1301078d7177ab83702737f7ed6df3a31a1e 100644 (file)
@@ -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])
                );