use isset

This commit is contained in:
Isaac Connor 2017-01-30 19:53:08 -05:00
parent 4543b3e1b1
commit ad2e00166a
1 changed files with 2 additions and 2 deletions

View File

@ -270,8 +270,8 @@ if ( canView( 'Stream' ) && $cycleCount > 1 ) {
foreach ( $storage_areas as $area ) {
$storage_paths[$area->Path()] = $area;
}
if ( ! $storage_paths[ZM_DIR_EVENTS] ) {
array_push( $storage_areas, new Storage() );
if ( ! isset($storage_paths[ZM_DIR_EVENTS]) ) {
array_push( $storage_areas, new Storage() );
}
$func = function($S){ return $S->Name() . ': ' . $S->disk_usage_percent().'%'; };