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

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/controller/collectionscontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/controller/collectionscontroller.php b/lib/controller/collectionscontroller.php
index 746dcb79..86476156 100644
--- a/lib/controller/collectionscontroller.php
+++ b/lib/controller/collectionscontroller.php
@@ -62,7 +62,7 @@ class CollectionsController extends Controller {
foreach ($collections as $key => $collection){
try{
$tmp = (int)\OCP\Config::getUserValue($this->api->getUserId(), 'tasks_enhanced','show_'.$collection['id']);
- if (!in_array($tmp, array(0,1,2) || $tmp==null)) {
+ if (!in_array($tmp, array(0,1,2)) || $tmp === null) {
$tmp = 2;
\OCP\Config::setUserValue($this->api->getUserId(), 'tasks_enhanced','show_'.$collection['id'],$tmp);
}