瀏覽代碼

scrutinizer on ftp/index.php : type result compared with 'false'

Faustin 2 年之前
父節點
當前提交
8742e457aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/ftp/index.php

+ 1 - 1
htdocs/ftp/index.php

@@ -709,7 +709,7 @@ print '<br>';
 if (!empty($conn_id)) {
 	$disconnect = dol_ftp_close($conn_id);
 
-	if ($disconnect == false) {
+	if (!$disconnect) {
 		setEventMessages($langs->trans("ErrorFTPNodisconnect"), null, 'errors');
 	}
 }