added more curly braces + a bit more usage of dbm::is_result()

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder
2017-01-25 15:59:27 +01:00
committed by Roland Haeder
parent 55e2411f07
commit 3849e7c9ff
5 changed files with 160 additions and 97 deletions
+2 -3
View File
@@ -264,13 +264,12 @@ function profiles_post(App $a) {
}
else {
$newname = $lookup;
/* if(strstr($lookup,' ')) {
/* if (strstr($lookup,' ')) {
$r = q("SELECT * FROM `contact` WHERE `name` = '%s' AND `uid` = %d LIMIT 1",
dbesc($newname),
intval(local_user())
);
}
else {
} else {
$r = q("SELECT * FROM `contact` WHERE `nick` = '%s' AND `uid` = %d LIMIT 1",
dbesc($lookup),
intval(local_user())