From: Mike Macgirvin Date: Tue, 17 Aug 2010 11:08:35 +0000 (-0700) Subject: sql typo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=478f84d9f2ccdad429aadb0d47b196db11c02945;p=friendica.git sql typo --- diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 98c1488f8f..cac077638f 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -118,7 +118,7 @@ function dfrn_confirm_post(&$a) { $thumb = $a->get_baseurl() . '/images/default-profile-sm.jpg'; } - $r = q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `rel` = %d, `name-date` = '%s', `uri-date` = '%s', `avatar-date` = '%s', `blocked` = 0, `pending` = 0 `network` = 'dfrn' WHERE `id` = %d LIMIT 1", + $r = q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `rel` = %d, `name-date` = '%s', `uri-date` = '%s', `avatar-date` = '%s', `blocked` = 0, `pending` = 0, `network` = 'dfrn' WHERE `id` = %d LIMIT 1", dbesc($photo), dbesc($thumb), intval(($relation == DIRECTION_IN) ? DIRECTION_BOTH: DIRECTION_OUT), @@ -329,7 +329,7 @@ function dfrn_confirm_post(&$a) { $thumb = $a->get_baseurl() . '/images/default-profile-sm.jpg'; } - $r = q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `rel` = %d, `name-date` = '%s', `uri-date` = '%s', `avatar-date` = '%s', `blocked` = 0, `pending` = 0 `network` = 'dfrn' WHERE `id` = %d LIMIT 1", + $r = q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `rel` = %d, `name-date` = '%s', `uri-date` = '%s', `avatar-date` = '%s', `blocked` = 0, `pending` = 0, `network` = 'dfrn' WHERE `id` = %d LIMIT 1", dbesc($photo), dbesc($thumb), intval(($relation == DIRECTION_OUT) ? DIRECTION_BOTH: DIRECTION_IN),