Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
use !== instead of != for null comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
klali committed Aug 24, 2018
1 parent fa2388e commit de37f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/u2flib_server/U2F.php
Expand Up @@ -387,7 +387,7 @@ private function get_certs()
{
$files = array();
$dir = $this->attestDir;
if($dir != null && is_dir($dir) && $handle = opendir($dir)) {
if($dir !== null && is_dir($dir) && $handle = opendir($dir)) {
while(false !== ($entry = readdir($handle))) {
if(is_file("$dir/$entry")) {
$files[] = "$dir/$entry";
Expand Down

0 comments on commit de37f4d

Please sign in to comment.