mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-19 21:10:49 +01:00
Bugfix categorie allegati
This commit is contained in:
parent
cfbe83e0cd
commit
f533383a02
@ -58,6 +58,9 @@ class FileManager implements ManagerInterface
|
||||
foreach ($categories as $category) {
|
||||
$category = $category['category'];
|
||||
|
||||
$rs = $dbo->fetchArray('SELECT * FROM `zz_files` WHERE `category`'.(!empty($category) ? '= '.prepare($category) : 'IS NULL').' AND `id_record` = '.prepare($options['id_record']).' AND '.$where);
|
||||
|
||||
if (!empty($rs)) {
|
||||
$result .= '
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
@ -76,8 +79,6 @@ class FileManager implements ManagerInterface
|
||||
<th width="15%" class="text-center">'.tr('Opzioni').'</th>
|
||||
</tr>';
|
||||
|
||||
$rs = $dbo->fetchArray('SELECT * FROM `zz_files` WHERE `category`'.(!empty($category) ? '= '.prepare($category) : 'IS NULL').' AND `id_record` = '.prepare($options['id_record']).' AND '.$where);
|
||||
|
||||
foreach ($rs as $r) {
|
||||
$result .= '
|
||||
<tr>
|
||||
@ -143,6 +144,7 @@ class FileManager implements ManagerInterface
|
||||
<div class="clearfix"></div>
|
||||
<br>';
|
||||
}
|
||||
}
|
||||
|
||||
// Form per l'upload di un nuovo file
|
||||
if (!$options['readonly']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user