X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Ffcontact.php;h=b2706e51a0226e3cc13bfd6cafb4179a8c249fd6;hb=d07236deb6ea56c25e4abf4fd972baf7928eff2b;hp=45145ddf99fce7dc7a93ceee6dd0cf79ffa24eb8;hpb=c825cc8d0d61386cb00b6310fc4ea46c4354460d;p=friendica.git diff --git a/include/fcontact.php b/include/fcontact.php index 45145ddf99..b2706e51a0 100644 --- a/include/fcontact.php +++ b/include/fcontact.php @@ -10,7 +10,7 @@ function fcontact_store($url,$name,$photo) { dbesc($nurl) ); - if(dbm::is_result($r)) + if (dbm::is_result($r)) return $r[0]['id']; $r = q("INSERT INTO `fcontact` ( `url`, `name`, `photo` ) VALUES ( '%s', '%s', '%s' ) ", @@ -19,11 +19,11 @@ function fcontact_store($url,$name,$photo) { dbesc($photo) ); - if($r) { + if (dbm::is_result($r)) { $r = q("SELECT `id` FROM `fcontact` WHERE `url` = '%s' LIMIT 1", dbesc($nurl) ); - if(dbm::is_result($r)) + if (dbm::is_result($r)) return $r[0]['id']; }