svn: /phd/trunk/phpdotnet/phd/Package/Generic/ BigXHTML.php
| From: | Moacir de Oliveira Miranda Júnior | Date: | Thu, 22 Oct 2009 19:13:56 +0000 |
| Subject: | svn: /phd/trunk/phpdotnet/phd/Package/Generic/ BigXHTML.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5192@lists.php.net to get a copy of this message | ||
moacir Thu, 22 Oct 2009 19:13:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=289864
Log:
Fixed the error triggered when the close function is called without a valid file stream
Changed paths:
U phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php
Modified: phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php 2009-10-22 19:03:31 UTC (rev 289863)
+++ phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php 2009-10-22 19:13:56 UTC (rev 289864)
@@ -55,8 +55,10 @@
}
public function close() {
- fwrite($this->getFileStream(), $this->footer(true));
- fclose($this->getFileStream());
+ if ($this->getFileStream()) {
+ fwrite($this->getFileStream(), $this->footer(true));
+ fclose($this->getFileStream());
+ }
}
public function update($event, $val = null) {