Check if value exists before returning

remotes/origin/ldap_group_count
Robin Appelman 11 years ago
parent 65f52fee4f
commit 51165a1a04
  1. 7
      lib/private/files/fileinfo.php

@ -55,8 +55,11 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
public function offsetGet($offset) {
if ($offset === 'type') {
return $this->getType();
} elseif (isset($this->data[$offset])) {
return $this->data[$offset];
} else {
return null;
}
return $this->data[$offset];
}
/**
@ -154,7 +157,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
}
}
public function getData(){
public function getData() {
return $this->data;
}

Loading…
Cancel
Save