|
From: <var...@us...> - 2021-07-29 15:01:27
|
Revision: 10393
http://sourceforge.net/p/phpwiki/code/10393
Author: vargenau
Date: 2021-07-29 15:01:20 +0000 (Thu, 29 Jul 2021)
Log Message:
-----------
configurator.php: check default_value exists
Modified Paths:
--------------
trunk/configurator.php
Modified: trunk/configurator.php
===================================================================
--- trunk/configurator.php 2021-07-29 13:14:35 UTC (rev 10392)
+++ trunk/configurator.php 2021-07-29 15:01:20 UTC (rev 10393)
@@ -1829,9 +1829,13 @@
if (!empty($HTTP_POST_VARS[$this->config_item_name])) {
return $HTTP_POST_VARS[$this->config_item_name];
} else {
- $option = key($this->default_value);
- next($this->default_value);
- return $option;
+ if (is_array($this->default_value)) {
+ $option = key($this->default_value);
+ next($this->default_value);
+ return $option;
+ } else {
+ return '';
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|