From 3acb573745d33f58a64b62f8fd07fffb8fc35ead Mon Sep 17 00:00:00 2001 From: Niclas Berglind Date: Mon, 14 Apr 2014 20:49:01 +0200 Subject: [PATCH] Fixes to the handling of cloned Datasets. Signed-off-by: Niclas Berglind --- src/Dataset.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ""; } -- 2.39.2