When no Id is specified, default to ZM_DIR_EVENTS
This commit is contained in:
parent
1b69299c2d
commit
50f9241c14
|
@ -26,6 +26,8 @@ class Storage {
|
||||||
public function Path() {
|
public function Path() {
|
||||||
if ( isset( $this->{'Path'} ) and ( $this->{'Path'} != '' ) ) {
|
if ( isset( $this->{'Path'} ) and ( $this->{'Path'} != '' ) ) {
|
||||||
return $this->{'Path'};
|
return $this->{'Path'};
|
||||||
|
} else if ( ! $this->{'Id'} ) {
|
||||||
|
return ZM_DIR_EVENTS;
|
||||||
}
|
}
|
||||||
return $this->{'Name'};
|
return $this->{'Name'};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue