mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +00:00
Continued with coding convention:
- added curly braces around conditional code blocks - added space between if/foreach/... and brace - rewrote a code block so if dbm::is_result() fails it will abort, else the id is fetched from INSERT statement - made some SQL keywords upper-cased and added back-ticks to columns/table names Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
4edc73486e
commit
d6e57f0348
31 changed files with 173 additions and 127 deletions
|
@ -178,7 +178,7 @@ function dfrn_request_post(App &$a) {
|
|||
);
|
||||
}
|
||||
|
||||
if($r) {
|
||||
if ($r) {
|
||||
info( t("Introduction complete.") . EOL);
|
||||
}
|
||||
|
||||
|
@ -301,7 +301,7 @@ function dfrn_request_post(App &$a) {
|
|||
dbesc(NETWORK_MAIL2)
|
||||
);
|
||||
if (dbm::is_result($r)) {
|
||||
foreach($r as $rr) {
|
||||
foreach ($r as $rr) {
|
||||
if(! $rr['rel']) {
|
||||
q("DELETE FROM `contact` WHERE `id` = %d",
|
||||
intval($rr['cid'])
|
||||
|
@ -326,7 +326,7 @@ function dfrn_request_post(App &$a) {
|
|||
dbesc(NETWORK_MAIL2)
|
||||
);
|
||||
if (dbm::is_result($r)) {
|
||||
foreach($r as $rr) {
|
||||
foreach ($r as $rr) {
|
||||
if(! $rr['rel']) {
|
||||
q("DELETE FROM `contact` WHERE `id` = %d",
|
||||
intval($rr['cid'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue