X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/cce9607beaa7189bd6d98603905cae381ec95ebe..d5f2a5099bed3fbe461aadeb763978b22c5ae383:/src/Dataset.php diff --git a/src/Dataset.php b/src/Dataset.php index d60fd06..65cca31 100644 --- a/src/Dataset.php +++ b/src/Dataset.php @@ -301,7 +301,7 @@ class OMVModuleZFSDataset { */ public function isClone() { $origin = $this->getProperty("origin"); - if (strlen($origin) > 0) { + if (strlen($origin["value"]) > 0) { return true; } else { return false; @@ -316,7 +316,8 @@ class OMVModuleZFSDataset { */ public function getOrigin() { if ($this->isClone()) { - return $this->getProperty("origin"); + $origin = $this->getProperty("origin"); + return $origin['value']; } else { return ""; }