1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

fixing file issue -- files can be deleted

This commit is contained in:
Bob Trahan 2013-03-17 14:36:22 -07:00
parent 3ad33dbc04
commit f04d3c9e94

View file

@ -194,7 +194,13 @@ final class ConpherenceThreadQuery
$conpherence_files = array();
$files_authors = array();
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
$current_author = null;
$current_author_phid = idx($file_author_phids, $curr_phid);