NOBUG improved coding style - it is always better to use === when comparing strings
This commit is contained in:
+1
-1
@@ -7054,7 +7054,7 @@ function get_list_of_plugins($directory='mod', $exclude='', $basedir='') {
|
||||
$dirhandle = opendir($basedir);
|
||||
while (false !== ($dir = readdir($dirhandle))) {
|
||||
$firstchar = substr($dir, 0, 1);
|
||||
if ($firstchar == '.' or $dir == 'CVS' or $dir == '_vti_cnf' or $dir == 'simpletest' or $dir == 'yui' or $dir == 'phpunit' or $dir == $exclude) {
|
||||
if ($firstchar === '.' or $dir === 'CVS' or $dir === '_vti_cnf' or $dir === 'simpletest' or $dir === 'yui' or $dir === 'phpunit' or $dir === $exclude) {
|
||||
continue;
|
||||
}
|
||||
if (filetype($basedir .'/'. $dir) != 'dir') {
|
||||
|
||||
Reference in New Issue
Block a user