Skip to content
Snippets Groups Projects
Commit 1d5b596a authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Fix loose comparison.

parent 4b43ef79
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ class SimpleSAML_Logger_LoggingHandlerFile implements SimpleSAML_Logger_LoggingH
*/
public function log($level, $string)
{
if ($this->logFile != null) {
if (!is_null($this->logFile)) {
// set human-readable log level. Copied from SimpleSAML_Logger_LoggingHandlerErrorLog.
$levelName = sprintf('UNKNOWN%d', $level);
if (array_key_exists($level, self::$levelNames)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment