소스 검색

! Another unnecessary function check for ob_xx (php < 4.2)

Spuds 13 년 전
부모
커밋
5fb6f839c2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/DumpDatabase.php

+ 1 - 1
Sources/DumpDatabase.php

@@ -79,7 +79,7 @@ function DumpDatabase2()
 		if (!empty($modSettings['enableCompressedOutput']))
 			@ob_end_clean();
 		// If we can, clean anything already sent from the output buffer...
-		elseif (function_exists('ob_clean') && ob_get_length() != 0)
+		elseif (ob_get_length() != 0)
 			ob_clean();
 
 		// Tell the client to save this file, even though it's text.