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:
Roland Haeder
2016-12-20 21:15:53 +01:00
parent 4edc73486e
commit d6e57f0348
31 changed files with 173 additions and 127 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ function delegate_content(App &$a) {
$nicknames = array();
if (dbm::is_result($r)) {
foreach($r as $rr) {
foreach ($r as $rr) {
$nicknames[] = "'" . dbesc(basename($rr['nurl'])) . "'";
}
}