1
0
mirror of https://github.com/prasathmani/tinyfilemanager.git synced 2025-07-09 11:26:25 +02:00

Minor identation issues (#1273)

This commit is contained in:
ner0
2025-01-23 01:56:10 +00:00
committed by GitHub
parent 9792bd000f
commit 8a17a5b210

View File

@ -2156,26 +2156,23 @@ $all_files_size = 0;
$owner = array('name' => '?'); $owner = array('name' => '?');
$group = array('name' => '?'); $group = array('name' => '?');
if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) { if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) {
try{ try {
$owner_id = fileowner($path . '/' . $f); $owner_id = fileowner($path . '/' . $f);
if($owner_id != 0) { if ($owner_id != 0) {
$owner_info = posix_getpwuid($owner_id); $owner_info = posix_getpwuid($owner_id);
if ($owner_info) { if ($owner_info) {
$owner = $owner_info; $owner = $owner_info;
} }
} }
$group_id = filegroup($path . '/' . $f); $group_id = filegroup($path . '/' . $f);
$group_info = posix_getgrgid($group_id); $group_info = posix_getgrgid($group_id);
if ($group_info) { if ($group_info) {
$group = $group_info; $group = $group_info;
} }
} catch (Exception $e) {
} catch(Exception $e){
error_log("exception:" . $e->getMessage()); error_log("exception:" . $e->getMessage());
} }
} }
?> ?>
<tr> <tr>
<?php if (!FM_READONLY): ?> <?php if (!FM_READONLY): ?>
@ -2231,26 +2228,23 @@ $all_files_size = 0;
$owner = array('name' => '?'); $owner = array('name' => '?');
$group = array('name' => '?'); $group = array('name' => '?');
if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) { if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) {
try{ try {
$owner_id = fileowner($path . '/' . $f); $owner_id = fileowner($path . '/' . $f);
if($owner_id != 0) { if ($owner_id != 0) {
$owner_info = posix_getpwuid($owner_id); $owner_info = posix_getpwuid($owner_id);
if ($owner_info) { if ($owner_info) {
$owner = $owner_info; $owner = $owner_info;
} }
} }
$group_id = filegroup($path . '/' . $f); $group_id = filegroup($path . '/' . $f);
$group_info = posix_getgrgid($group_id); $group_info = posix_getgrgid($group_id);
if ($group_info) { if ($group_info) {
$group = $group_info; $group = $group_info;
} }
} catch (Exception $e) {
} catch(Exception $e){
error_log("exception:" . $e->getMessage()); error_log("exception:" . $e->getMessage());
} }
} }
?> ?>
<tr> <tr>
<?php if (!FM_READONLY): ?> <?php if (!FM_READONLY): ?>