]> git.datanom.net - omvzfs.git/commitdiff
Fixes to the handling of cloned Datasets.
authorNiclas Berglind <nb@kjam.se>
Mon, 14 Apr 2014 18:49:01 +0000 (20:49 +0200)
committerMichael Rasmussen <mir@datanom.net>
Thu, 17 Apr 2014 23:11:04 +0000 (01:11 +0200)
Signed-off-by: Niclas Berglind <nb@kjam.se>
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.03066 seconds and 5 git commands to generate.