Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-05-13 11:16:53 +0400
committerThomas Tanghus <thomas@tanghus.net>2012-05-13 11:16:53 +0400
commit9e6221b229410599c28045d1956bb6e84d33cadc (patch)
tree81d7566e2d9c30e097ddb42de174bc5d6b4426d2 /lib/vcategories.php
parent56bd3f12209cfd64cc0dc333bf643f077ef011fc (diff)
VCategories: Suppress error messages stemming from import from file app.
Diffstat (limited to 'lib/vcategories.php')
-rw-r--r--lib/vcategories.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vcategories.php b/lib/vcategories.php
index b3b6a493c8d..7b3844bf689 100644
--- a/lib/vcategories.php
+++ b/lib/vcategories.php
@@ -96,7 +96,7 @@ class OC_VCategories {
}
}
if(count($newones) > 0) {
- $this->categories = array_merge($this->categories, $newones);
+ $this->categories = @array_merge($this->categories, $newones);
if($sync === true) {
$this->save();
}
@@ -199,7 +199,7 @@ class OC_VCategories {
// case-insensitive in_array
private function in_arrayi($needle, $haystack) {
- return in_array(strtolower($needle), array_map('strtolower', $haystack));
+ return in_array(strtolower($needle), @array_map('strtolower', $haystack));
}
// case-insensitive array_search