]> git.datanom.net - omvzfs.git/blobdiff - src/Dataset.php
Use the newly introduced hidden flag when creating mntent objects.
[omvzfs.git] / src / Dataset.php
index d60fd069553dfdf3afde121fb867344d3d14bc91..65cca318d0af348f3eedb45b4458e4d84355ad1a 100644 (file)
@@ -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 "";
                }
This page took 0.03563 seconds and 5 git commands to generate.