Index: branches/5.2.x/units/files/files.php =================================================================== diff -u -r13845 -r14099 --- branches/5.2.x/units/files/files.php (.../files.php) (revision 13845) +++ branches/5.2.x/units/files/files.php (.../files.php) (revision 14099) @@ -1,6 +1,6 @@ <?php /** -* @version $Id: files.php 12739 2009-10-20 19:38:22Z alex $ +* @version $Id: files.php 14099 2010-12-28 18:08:32Z alex $ * @package In-Commerce * @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved. * @license Commercial License @@ -13,9 +13,9 @@ defined('FULL_PATH') or die('restricted access!'); - class FilesItem extends kDBItem { + class FilesItem extends kDBItem { - function Delete($id) + public function Delete($id = null) { $this->Load($id); $upload_dir = $this->Fields['FilePath']['upload_dir'];