X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcrepair.php;h=ef5f3613051db8c1627bea2d6039d788cba86152;hb=a588ae4022cf3715ac4801a8ed9633b1be1d3dfb;hp=f8336ef0bacfc33e067932e116d9516d537024d3;hpb=c0212c09ec6eefe79184427cac5c0c9809cd59fa;p=friendica.git diff --git a/mod/crepair.php b/mod/crepair.php index f8336ef0ba..ef5f361305 100644 --- a/mod/crepair.php +++ b/mod/crepair.php @@ -28,7 +28,7 @@ function crepair_init(&$a) { $o .= ''; $a->page['aside'] .= $o; - } + } } @@ -59,10 +59,10 @@ function crepair_post(&$a) { $poll = ((x($_POST,'poll')) ? $_POST['poll'] : ''); $attag = ((x($_POST,'attag')) ? $_POST['attag'] : ''); $photo = ((x($_POST,'photo')) ? $_POST['photo'] : ''); - $remote_self = ((x($_POST,'remote_self')) ? intval($_POST['remote_self']) : 0); + $remote_self = ((x($_POST,'remote_self')) ? $_POST['remote_self'] : false); - $r = q("UPDATE `contact` SET `name` = '%s', `nick` = '%s', `url` = '%s', `request` = '%s', `confirm` = '%s', `notify` = '%s', `poll` = '%s', `attag` = '%s', `remote_self` = '%d' - WHERE `id` = %d AND `uid` = %d LIMIT 1", + $r = q("UPDATE `contact` SET `name` = '%s', `nick` = '%s', `url` = '%s', `request` = '%s', `confirm` = '%s', `notify` = '%s', `poll` = '%s', `attag` = '%s' , `remote_self` = %d + WHERE `id` = %d AND `uid` = %d", dbesc($name), dbesc($nick), dbesc($url), @@ -71,7 +71,7 @@ function crepair_post(&$a) { dbesc($notify), dbesc($poll), dbesc($attag), - $remote_self, + intval($remote_self), intval($contact['id']), local_user() ); @@ -88,7 +88,7 @@ function crepair_post(&$a) { `name-date` = '%s', `uri-date` = '%s', `avatar-date` = '%s' - WHERE `id` = %d LIMIT 1 + WHERE `id` = %d ", dbesc($photos[0]), dbesc($photos[1]),