summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/Logger/LoggingHandlerFile.php
diff options
context:
space:
mode:
authorJaime Perez Crespo <jaime.perez@uninett.no>2016-03-31 16:10:05 +0200
committerJaime Perez Crespo <jaime.perez@uninett.no>2016-03-31 16:10:05 +0200
commit1d5b596ab432dc3db2351d3f67743fcbe16dbfeb (patch)
tree7c6a1b868762b7ded35a377c0c74c09c29f7bbfe /lib/SimpleSAML/Logger/LoggingHandlerFile.php
parent4b43ef7973de64618f151f47ff11bf25c743e927 (diff)
downloadsimplesamlphp-1d5b596ab432dc3db2351d3f67743fcbe16dbfeb.zip
simplesamlphp-1d5b596ab432dc3db2351d3f67743fcbe16dbfeb.tar.gz
simplesamlphp-1d5b596ab432dc3db2351d3f67743fcbe16dbfeb.tar.bz2
Fix loose comparison.
Diffstat (limited to 'lib/SimpleSAML/Logger/LoggingHandlerFile.php')
-rw-r--r--lib/SimpleSAML/Logger/LoggingHandlerFile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Logger/LoggingHandlerFile.php b/lib/SimpleSAML/Logger/LoggingHandlerFile.php
index 77efe22..e1deff7 100644
--- a/lib/SimpleSAML/Logger/LoggingHandlerFile.php
+++ b/lib/SimpleSAML/Logger/LoggingHandlerFile.php
@@ -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)) {