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
commit 3849e7c9ff
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
5 changed files with 160 additions and 97 deletions

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())