|
From: <var...@us...> - 2011-04-14 12:12:12
|
Revision: 8053
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8053&view=rev
Author: vargenau
Date: 2011-04-14 12:12:06 +0000 (Thu, 14 Apr 2011)
Log Message:
-----------
Avoid warnings
Modified Paths:
--------------
trunk/lib/loadsave.php
Modified: trunk/lib/loadsave.php
===================================================================
--- trunk/lib/loadsave.php 2011-04-14 09:48:00 UTC (rev 8052)
+++ trunk/lib/loadsave.php 2011-04-14 12:12:06 UTC (rev 8053)
@@ -554,10 +554,13 @@
$page_iter_sav->reset();
}
- if (defined('HTML_DUMP_SUFFIX'))
+ if (defined('HTML_DUMP_SUFFIX')) {
$WikiTheme->HTML_DUMP_SUFFIX = HTML_DUMP_SUFFIX;
- $_bodyAttr = @$WikiTheme->_MoreAttr['body'];
- unset($WikiTheme->_MoreAttr['body']);
+ }
+ if (isset($WikiTheme->_MoreAttr['body'])) {
+ $_bodyAttr = $WikiTheme->_MoreAttr['body'];
+ unset($WikiTheme->_MoreAttr['body']);
+ }
$ErrorManager->pushErrorHandler(new WikiFunctionCb('_dump_error_handler'));
@@ -873,7 +876,7 @@
$WikiTheme->HTML_DUMP_SUFFIX = '';
$WikiTheme->DUMP_MODE = false;
- $WikiTheme->_MoreAttr['body'] = $_bodyAttr;
+ $WikiTheme->_MoreAttr['body'] = isset($_bodyAttr) ? $_bodyAttr : '';
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|