$image = "";
} elseif ($iscomment) {
logger('twitter_post: Update extid '.$result->id_str." for post id ".$b['id']);
- q("UPDATE `item` SET `extid` = '%s', `body` = '%s' WHERE `id` = %d LIMIT 1",
+ q("UPDATE `item` SET `extid` = '%s', `body` = '%s' WHERE `id` = %d",
dbesc("twitter::".$result->id_str),
dbesc($result->text),
intval($b['id'])
notice(t('Twitter post failed. Queued for retry.').EOL);
} elseif ($iscomment) {
logger('twitter_post: Update extid '.$result->id_str." for post id ".$b['id']);
- q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
+ q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d",
dbesc("twitter::".$result->id_str),
intval($b['id'])
);
- //q("UPDATE `item` SET `extid` = '%s', `body` = '%s' WHERE `id` = %d LIMIT 1",
+ //q("UPDATE `item` SET `extid` = '%s', `body` = '%s' WHERE `id` = %d",
// dbesc("twitter::".$result->id_str),
// dbesc($result->text),
// intval($b['id'])
$contact_id = $r[0]['id'];
- $g = q("select def_gid from user where uid = %d limit 1",
+ $g = q("SELECT def_gid FROM user WHERE uid = %d LIMIT 1",
intval($uid)
);
`name-date` = '%s',
`uri-date` = '%s',
`avatar-date` = '%s'
- WHERE `id` = %d LIMIT 1",
+ WHERE `id` = %d",
dbesc($photos[0]),
dbesc($photos[1]),
dbesc($photos[2]),
`nurl` = '%s',
`addr` = '%s',
`name` = '%s',
- `nick` = '%s',
- WHERE `id` = %d LIMIT 1",
+ `nick` = '%s'
+ WHERE `id` = %d",
dbesc($photos[0]),
dbesc($photos[1]),
dbesc($photos[2]),
} else
return;
- $u = q("select * from user where uid = %d limit 1",
+ $u = q("SELECT * FROM user WHERE uid = %d LIMIT 1",
intval($uid));
if(!count($u))
return;