r28273 - /trunk/etemplate/inc/class.vfs_widget.inc.php

View: New views
1 Messages — Rating Filter:   Alert me  

r28273 - /trunk/etemplate/inc/class.vfs_widget.inc.php

by ralfbecker :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Author: ralfbecker
Date: Fri Nov  6 13:56:51 2009
New Revision: 28273

URL: http://www.egroupware.org/viewvc/egroupware?rev=28273&view=rev
Log:
"fixed exception eteplate::get_array($arr,$name) $arr is no array"

Modified:
    trunk/etemplate/inc/class.vfs_widget.inc.php

Modified: trunk/etemplate/inc/class.vfs_widget.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/etemplate/inc/class.vfs_widget.inc.php?rev=28273&r1=28272&r2=28273&view=diff
==============================================================================
--- trunk/etemplate/inc/class.vfs_widget.inc.php (original)
+++ trunk/etemplate/inc/class.vfs_widget.inc.php Fri Nov  6 13:56:51 2009
@@ -5,7 +5,7 @@
  * @link http://www.egroupware.org
  * @author Ralf Becker <RalfBecker@...>
  * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
- * @copyright 2008 by RalfBecker@...
+ * @copyright 2008/9 by RalfBecker@...
  * @package etemplate
  * @subpackage extensions
  * @version $Id$
@@ -455,8 +455,7 @@
  // handle file upload
  $name = preg_replace('/^exec\[([^]]+)\](.*)$/','\\1\\2',$name); // remove exec prefix
 
- $filename = etemplate::get_array($_FILES['exec']['name'],$name);
- if (empty($filename))
+ if (!is_array($_FILES['exec']) || !($filename = etemplate::get_array($_FILES['exec']['name'],$name)))
  {
  return false; // no file attached
  }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
eGroupWare-cvs mailing list
eGroupWare-cvs@...
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs