diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-03-04 17:05:08 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-03-04 17:05:08 +0100 |
commit | c08a04bc839651f14816f04d10a9250ac2515f35 (patch) | |
tree | 0eaca3c20cd888dc299e2fa84bf6afe4832c1dc1 | |
parent | ef70978524ad0f00c3e5f03a489753547afee45a (diff) | |
download | nextcloud-server-c08a04bc839651f14816f04d10a9250ac2515f35.tar.gz nextcloud-server-c08a04bc839651f14816f04d10a9250ac2515f35.zip |
VCategories: Don't forget to save category relations if category exists.
-rw-r--r-- | lib/vcategories.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/vcategories.php b/lib/vcategories.php index f94a0a55d3b..2f990c5d2d2 100644 --- a/lib/vcategories.php +++ b/lib/vcategories.php @@ -348,12 +348,11 @@ class OC_VCategories { self::$relations[] = array('objid' => $id, 'category' => $name); } } - if(count($newones) > 0) { - $this->categories = array_merge($this->categories, $newones); - if($sync === true) { - $this->save(); - } + $this->categories = array_merge($this->categories, $newones); + if($sync === true) { + $this->save(); } + return true; } |