]> git.mxchange.org Git - friendica.git/commitdiff
sql syntax
authorFriendika <info@friendika.com>
Sun, 21 Aug 2011 01:05:05 +0000 (18:05 -0700)
committerFriendika <info@friendika.com>
Sun, 21 Aug 2011 01:05:05 +0000 (18:05 -0700)
include/diaspora.php

index e943ea0860e2578bd22699b422a087899d8e4712..44b97400b2fe8ccfa2fe4f58b397fb59c254b428 100644 (file)
@@ -634,7 +634,7 @@ function diaspora_like($importer,$xml,$msg) {
 
        $parent_item = $r[0];
 
-       $r = q("SELECT * FROM `item` WHERE `uid` = %d AND `guid` = '$s' LIMIT 1",
+       $r = q("SELECT * FROM `item` WHERE `uid` = %d AND `guid` = '%s' LIMIT 1",
                intval($importer['uid']),
                dbesc($guid)
        );