--- a/trunk/e107_0.7/e107_admin/download.php
+++ b/trunk/e107_0.7/e107_admin/download.php
@@ -10,9 +10,9 @@
 |     GNU General Public License (http://gnu.org).
 |
 |     $URL: file:///svn/p/e107/svn/trunk/e107_0.7/e107_admin/download.php $
-|     $Revision: 13061 $
-|     $Id: download.php 13061 2012-12-30 12:19:23Z nlstart $
-|     $Author: nlstart $
+|     $Revision: 13116 $
+|     $Id: download.php 13116 2014-02-06 20:56:16Z e107steved $
+|     $Author: e107steved $
 +----------------------------------------------------------------------------+
 */
 define('DOWNLOAD_DEBUG',FALSE);
@@ -1302,8 +1302,8 @@
 		$_POST['download_author_website'] = str_replace("'", '', $_POST['download_author_website']);
 		$_POST['download_image'] = str_replace("'", '', $_POST['download_image']);
 		$_POST['download_thumb'] = str_replace("'", '', $_POST['download_thumb']);
-		$_POST['download_visible'] = $_POST['download_visible'] ? intval($_POST['download_visible']) : '';
-		$_POST['download_class'] = $_POST['download_class'] ? intval($_POST['download_class']) : '';
+		$_POST['download_visible'] = $_POST['download_visible'] ? intval($_POST['download_visible']) : '0';
+		$_POST['download_class'] = $_POST['download_class'] ? intval($_POST['download_class']) : '0';
 		
 		if($_POST['download_author_email'] && !check_email($_POST['download_author_email']))
 		{