mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
"fixed exception eteplate::get_array($arr,$name) $arr is no array"
This commit is contained in:
parent
18b145fe24
commit
5b64b4a0e7
@ -5,7 +5,7 @@
|
|||||||
* @link http://www.egroupware.org
|
* @link http://www.egroupware.org
|
||||||
* @author Ralf Becker <RalfBecker@outdoor-training.de>
|
* @author Ralf Becker <RalfBecker@outdoor-training.de>
|
||||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||||
* @copyright 2008 by RalfBecker@outdoor-training.de
|
* @copyright 2008/9 by RalfBecker@outdoor-training.de
|
||||||
* @package etemplate
|
* @package etemplate
|
||||||
* @subpackage extensions
|
* @subpackage extensions
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
@ -455,8 +455,7 @@ class vfs_widget
|
|||||||
// handle file upload
|
// handle file upload
|
||||||
$name = preg_replace('/^exec\[([^]]+)\](.*)$/','\\1\\2',$name); // remove exec prefix
|
$name = preg_replace('/^exec\[([^]]+)\](.*)$/','\\1\\2',$name); // remove exec prefix
|
||||||
|
|
||||||
$filename = etemplate::get_array($_FILES['exec']['name'],$name);
|
if (!is_array($_FILES['exec']) || !($filename = etemplate::get_array($_FILES['exec']['name'],$name)))
|
||||||
if (empty($filename))
|
|
||||||
{
|
{
|
||||||
return false; // no file attached
|
return false; // no file attached
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user