Continued with coding convention:

- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- 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:31:05 +01:00
parent 04d90d9780
commit 536f078ed4
9 changed files with 78 additions and 56 deletions

View File

@@ -59,7 +59,7 @@ function tagrm_content(App &$a) {
}
$item = (($a->argc > 1) ? intval($a->argv[1]) : 0);
if(! $item) {
if (! $item) {
goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']);
// NOTREACHED
}
@@ -87,8 +87,7 @@ function tagrm_content(App &$a) {
$o .= '<input type="hidden" name="item" value="' . $item . '" />';
$o .= '<ul>';
foreach($arr as $x) {
foreach ($arr as $x) {
$o .= '<li><input type="checkbox" name="tag" value="' . bin2hex($x) . '" >' . bbcode($x) . '</input></li>';
}
@@ -98,5 +97,5 @@ function tagrm_content(App &$a) {
$o .= '</form>';
return $o;
}