diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-11 03:05:33 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-11 03:07:20 +0200 |
commit | a21fd725d6f59c4ba7730b7bddcfd46a31a75267 (patch) | |
tree | 99d8619dc332b76b64a7ce5de5fd23438204a441 /lib/vcategories.php | |
parent | c898a8a6c90fd364bf787916c0f6b35d3f6c1c75 (diff) | |
download | nextcloud-server-a21fd725d6f59c4ba7730b7bddcfd46a31a75267.tar.gz nextcloud-server-a21fd725d6f59c4ba7730b7bddcfd46a31a75267.zip |
Categories: Turned the debugging down a bit.
Diffstat (limited to 'lib/vcategories.php')
-rw-r--r-- | lib/vcategories.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vcategories.php b/lib/vcategories.php index 64c99b1bad5..ee357c350df 100644 --- a/lib/vcategories.php +++ b/lib/vcategories.php @@ -63,7 +63,7 @@ class OC_VCategories { * @returns array containing the categories as strings. */ public function categories() { - OC_Log::write('core','OC_VCategories::categories: '.print_r($this->categories, true), OC_Log::DEBUG); + //OC_Log::write('core','OC_VCategories::categories: '.print_r($this->categories, true), OC_Log::DEBUG); usort($this->categories, 'strnatcasecmp'); // usort to also renumber the keys return $this->categories; } @@ -169,7 +169,7 @@ class OC_VCategories { foreach($names as $name) { OC_Log::write('core','OC_VCategories::delete: '.$name, OC_Log::DEBUG); if($this->hasCategory($name)) { - OC_Log::write('core','OC_VCategories::delete: '.$name.' got it', OC_Log::DEBUG); + //OC_Log::write('core','OC_VCategories::delete: '.$name.' got it', OC_Log::DEBUG); unset($this->categories[$this->array_searchi($name, $this->categories)]); } } @@ -183,14 +183,14 @@ class OC_VCategories { //OC_Log::write('core','OC_VCategories::delete, before: '.$key.': '.print_r($categories, true), OC_Log::DEBUG); foreach($names as $name) { $idx = $this->array_searchi($name, $categories); - OC_Log::write('core','OC_VCategories::delete, loop: '.$name.', '.print_r($idx, true), OC_Log::DEBUG); + //OC_Log::write('core','OC_VCategories::delete, loop: '.$name.', '.print_r($idx, true), OC_Log::DEBUG); if($idx !== false) { OC_Log::write('core','OC_VCategories::delete, unsetting: '.$categories[$this->array_searchi($name, $categories)], OC_Log::DEBUG); unset($categories[$this->array_searchi($name, $categories)]); //unset($categories[$idx]); } } - OC_Log::write('core','OC_VCategories::delete, after: '.$key.': '.print_r($categories, true), OC_Log::DEBUG); + //OC_Log::write('core','OC_VCategories::delete, after: '.$key.': '.print_r($categories, true), OC_Log::DEBUG); $vobject->setString('CATEGORIES', implode(',', $categories)); $value[1] = $vobject->serialize(); $objects[$key] = $value; |