handle when storage area is gone

pull/2077/head
Isaac Connor 2018-04-04 20:27:21 -04:00
parent 1033755dc8
commit 2f6adff1b2
1 changed files with 2 additions and 2 deletions

View File

@ -205,14 +205,14 @@ while ( $event_row = dbFetchNext($results) ) {
<?php <?php
if ( count($storage_areas) > 1 ) { if ( count($storage_areas) > 1 ) {
?> ?>
<td class="colStorage"><?php echo $storage_areas[$event->StorageId()]->Name() ?></td> <td class="colStorage"><?php echo isset($storage_areas[$event->StorageId()]) ? $storage_areas[$event->StorageId()]->Name() : '' ?></td>
<?php <?php
} }
if ( ZM_WEB_EVENT_DISK_SPACE ) { if ( ZM_WEB_EVENT_DISK_SPACE ) {
$disk_space_total += $event->DiskSpace(); $disk_space_total += $event->DiskSpace();
?> ?>
<td class="colDiskSpace"><?php echo human_filesize( $event->DiskSpace() ) ?></td> <td class="colDiskSpace"><?php echo human_filesize($event->DiskSpace()) ?></td>
<?php <?php
} }
if ( ZM_WEB_LIST_THUMBS ) { if ( ZM_WEB_LIST_THUMBS ) {