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:
committed by
Roland Haeder
parent
55e2411f07
commit
3849e7c9ff
+2
-3
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user