Skip to content

Commit

Permalink
Minor identation issues (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
ner00 authored Jan 23, 2025
1 parent 9792bd0 commit 8a17a5b
Showing 1 changed file with 21 additions and 27 deletions.
48 changes: 21 additions & 27 deletions tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2156,26 +2156,23 @@ class="edit-file"><i class="fa fa-pencil-square"></i> <?php echo lng('AdvancedEd
$owner = array('name' => '?');
$group = array('name' => '?');
if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) {
try{
try {
$owner_id = fileowner($path . '/' . $f);
if($owner_id != 0) {
if ($owner_id != 0) {
$owner_info = posix_getpwuid($owner_id);
if ($owner_info) {
$owner = $owner_info;
}
}

if ($owner_info) {
$owner = $owner_info;
}
}
$group_id = filegroup($path . '/' . $f);
$group_info = posix_getgrgid($group_id);
if ($group_info) {
$group = $group_info;
}

} catch(Exception $e){
error_log("exception:" . $e->getMessage());
$group = $group_info;
}
} catch (Exception $e) {
error_log("exception:" . $e->getMessage());
}
}

?>
<tr>
<?php if (!FM_READONLY): ?>
Expand Down Expand Up @@ -2231,26 +2228,23 @@ class="edit-file"><i class="fa fa-pencil-square"></i> <?php echo lng('AdvancedEd
$owner = array('name' => '?');
$group = array('name' => '?');
if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) {
try{
try {
$owner_id = fileowner($path . '/' . $f);
if($owner_id != 0) {
if ($owner_id != 0) {
$owner_info = posix_getpwuid($owner_id);
if ($owner_info) {
$owner = $owner_info;
}
}

if ($owner_info) {
$owner = $owner_info;
}
}
$group_id = filegroup($path . '/' . $f);
$group_info = posix_getgrgid($group_id);
if ($group_info) {
$group = $group_info;
}

} catch(Exception $e){
error_log("exception:" . $e->getMessage());
$group = $group_info;
}
} catch (Exception $e) {
error_log("exception:" . $e->getMessage());
}
}

?>
<tr>
<?php if (!FM_READONLY): ?>
Expand Down Expand Up @@ -5600,4 +5594,4 @@ function lng($txt)
else return "$txt";
}

?>
?>

0 comments on commit 8a17a5b

Please sign in to comment.