When no Id is specified, default to ZM_DIR_EVENTS

This commit is contained in:
Isaac Connor 2016-03-29 15:38:53 -04:00
parent 1b69299c2d
commit 50f9241c14
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ class Storage {
public function Path() {
if ( isset( $this->{'Path'} ) and ( $this->{'Path'} != '' ) ) {
return $this->{'Path'};
} else if ( ! $this->{'Id'} ) {
return ZM_DIR_EVENTS;
}
return $this->{'Name'};
}