NOBUG improved coding style - it is always better to use === when comparing strings

This commit is contained in:
Petr Skoda
2010-08-26 16:28:28 +00:00
parent c126d45243
commit 3e359a08a0
+1 -1
View File
@@ -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') {