]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use more strict type comparisons
authorRobin McCorkell <rmccorkell@karoshi.org.uk>
Tue, 29 Apr 2014 09:00:26 +0000 (10:00 +0100)
committerRobin McCorkell <rmccorkell@karoshi.org.uk>
Wed, 21 May 2014 21:17:21 +0000 (22:17 +0100)
apps/files_external/lib/config.php

index 223b91788cbb053ed49eda94f06a4528ff559182..48f3c1f4a1bf1ea9daef77fb7be053b1ecb106df 100755 (executable)
@@ -163,7 +163,7 @@ class OC_Mount_Config {
 
                                if ( (!isset($mountPoints[$mountPoint]))
                                        || ($options['priority'] >= $mountPoints[$mountPoint]['priority'])
-                                       || ($mountPoints[$mountPoint]['priority_type'] != 'global') ) {
+                                       || ($mountPoints[$mountPoint]['priority_type'] !== 'global') ) {
                                        $options['priority_type'] = 'global';
                                        $mountPoints[$mountPoint] = $options;
                                }
@@ -184,7 +184,7 @@ class OC_Mount_Config {
 
                                                if ( (!isset($mountPoints[$mountPoint]))
                                                        || ($options['priority'] >= $mountPoints[$mountPoint]['priority'])
-                                                       || ($mountPoints[$mountPoint]['priority_type'] != 'group') ) {
+                                                       || ($mountPoints[$mountPoint]['priority_type'] !== 'group') ) {
                                                        $options['priority_type'] = 'group';
                                                        $mountPoints[$mountPoint] = $options;
                                                }
@@ -207,7 +207,7 @@ class OC_Mount_Config {
 
                                                if ( (!isset($mountPoints[$mountPoint]))
                                                        || ($options['priority'] >= $mountPoints[$mountPoint]['priority'])
-                                                       || ($mountPoints[$mountPoint]['priority_type'] != 'user') ) {
+                                                       || ($mountPoints[$mountPoint]['priority_type'] !== 'user') ) {
                                                        $options['priority_type'] = 'user';
                                                        $mountPoints[$mountPoint] = $options;
                                                }
@@ -223,7 +223,7 @@ class OC_Mount_Config {
                                $options['options'] = self::decryptPasswords($options['options']);
 
                                if ( (!isset($mountPoints[$mountPoint]))
-                                       || ($mountPoints[$mountPoint]['priority_type'] != 'personal') ) {
+                                       || ($mountPoints[$mountPoint]['priority_type'] !== 'personal') ) {
                                        $options['priority_type'] = 'personal';
                                        $mountPoints[$mountPoint] = $options;
                                }