[pLog-svn] r1867 - plog/branches/plog-1.0.1/class/action/admin
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Mon Apr 18 18:22:19 GMT 2005
Author: oscar
Date: 2005-04-18 18:22:18 +0000 (Mon, 18 Apr 2005)
New Revision: 1867
Modified:
plog/branches/plog-1.0.1/class/action/admin/adminupdateglobalsettingsaction.class.php
Log:
this solves issue http://bugs.plogworld.net/view.php?id=425
Modified: plog/branches/plog-1.0.1/class/action/admin/adminupdateglobalsettingsaction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/admin/adminupdateglobalsettingsaction.class.php 2005-04-18 16:57:04 UTC (rev 1866)
+++ plog/branches/plog-1.0.1/class/action/admin/adminupdateglobalsettingsaction.class.php 2005-04-18 18:22:18 UTC (rev 1867)
@@ -27,13 +27,15 @@
// the xmlrpc_ping_hosts requires special treatment, since we need to
// split the input returned from the textbox into an array
- $array = Array();
- foreach(explode( "\r\n", $this->_newConfigOpts["xmlrpc_ping_hosts"] ) as $host ) {
- trim($host);
- if( $host != "" && $host != "\r\n" && $host != "\r" && $host != "\n" )
- array_push( $array, $host );
+ if( isset( $this->_newConfigOpts["xmlrpc_ping_hosts"])) {
+ $array = Array();
+ foreach(explode( "\r\n", $this->_newConfigOpts["xmlrpc_ping_hosts"] ) as $host ) {
+ trim($host);
+ if( $host != "" && $host != "\r\n" && $host != "\r" && $host != "\n" )
+ array_push( $array, $host );
+ }
+ $this->_newConfigOpts["xmlrpc_ping_hosts"] = $array;
}
- $this->_newConfigOpts["xmlrpc_ping_hosts"] = $array;
// the 'locales' and 'arrays' settings are not coming from the request
$configOpts = $this->_config->getAsArray();
More information about the pLog-svn
mailing list