From: Friendika Date: Sun, 21 Aug 2011 01:05:05 +0000 (-0700) Subject: sql syntax X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f5c0443b91b7be1d75b19f72a30dc01041cf157c;p=friendica.git sql syntax --- diff --git a/include/diaspora.php b/include/diaspora.php index e943ea0860..44b97400b2 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -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) );