浏览代码

remove Yoda condition

euromark 12 年之前
父节点
当前提交
9bb77e50f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Lib/ImapLib.php

+ 1 - 1
Lib/ImapLib.php

@@ -137,7 +137,7 @@ class ImapLib {
 
 		//$options = OP_DEBUG;
 		$this->stream = @imap_open($connector, $user, $pass, $options);
-		if (false === $this->stream) {
+		if ($this->stream === false) {
 			if ($error = $this->checkConnection()) {
 				throw new ImapException($error);
 			}