mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-10 11:28:35 +02:00
fixing file issue -- files can be deleted
This commit is contained in:
parent
3ad33dbc04
commit
f04d3c9e94
1 changed files with 7 additions and 1 deletions
|
@ -194,7 +194,13 @@ final class ConpherenceThreadQuery
|
||||||
$conpherence_files = array();
|
$conpherence_files = array();
|
||||||
$files_authors = array();
|
$files_authors = array();
|
||||||
foreach ($conpherence->getFilePHIDs() as $curr_phid) {
|
foreach ($conpherence->getFilePHIDs() as $curr_phid) {
|
||||||
$conpherence_files[$curr_phid] = $files[$curr_phid];
|
$curr_file = idx($files, $curr_phid);
|
||||||
|
if (!$curr_file) {
|
||||||
|
// this file was deleted or user doesn't have permission to see it
|
||||||
|
// this is generally weird
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$conpherence_files[$curr_phid] = $curr_file;
|
||||||
// some files don't have authors so be careful
|
// some files don't have authors so be careful
|
||||||
$current_author = null;
|
$current_author = null;
|
||||||
$current_author_phid = idx($file_author_phids, $curr_phid);
|
$current_author_phid = idx($file_author_phids, $curr_phid);
|
||||||
|
|
Loading…
Add table
Reference in a new issue