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:
parent
55e2411f07
commit
3849e7c9ff
5 changed files with 160 additions and 97 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue