Project

General

Profile

« Previous | Next » 

Revision 434

Added by doc almost 18 years ago

Suppressed PHP warnings and errors when reading empty intro.php

View differences:

trunk/CHANGELOG
33 33
#	Fixed form modul stores empty records
34 34
------------------------------------- 2.6.6 -------------------------------------
35 35
16-Feb-2007 Christian Sommer
36
!	Suppressed PHP warnings and errors when reading empty intro.php
37
16-Feb-2007 Christian Sommer
36 38
#	Applied fix to enable parsing of PHP code in the intro.php 
37 39
30-Jan-2007 Ryan Djurovich
38 40
#	Applied fix for ticket #376
trunk/wb/framework/class.frontend.php
68 68
			// Get intro page content
69 69
			$filename = WB_PATH.PAGES_DIRECTORY.'/intro.php';
70 70
			if(file_exists($filename)) {
71
				$handle = fopen($filename, "r");
72
				$content = fread($handle, filesize($filename));
73
				fclose($handle);
71
				$handle = @fopen($filename, "r");
72
				$content = @fread($handle, filesize($filename));
73
				@fclose($handle);
74 74
				$this->preprocess($content);
75 75
	      header("Location: pages/intro.php");   // send intro.php as header to allow parsing of php statements
76 76
				echo ($content);

Also available in: Unified diff