diff --git a/admin/core/mngFile.php b/admin/core/mngFile.php
index 1a5f9356..e126811f 100755
--- a/admin/core/mngFile.php
+++ b/admin/core/mngFile.php
@@ -103,6 +103,12 @@ function autoloader($class){
}
$file->title=$_POST['title'];
+
+ if (isset($_POST['fileSel'])&&$_FILES['myfile']['size'] == 0 ){
+ header("Location: ../index.php?man=files&op=show&msg=fileEmpty");
+ exit;
+ }
+
if($file->update()){
if(isset($_POST['fileSel'])){
@@ -117,10 +123,7 @@ function autoloader($class){
$filepath = "../../uploads/". $filename ."";
if(unlink($filepath) || !file_exists(($filepath))){
- if ($_FILES['myfile']['size'] == 0 ){
- header("Location: ../index.php?man=files&op=show&msg=fileEmpty");
- exit;
- }
+
$file->file=$_FILES['myfile']['tmp_name'];
$file->title=$_POST['title'];
$file->filename=$_FILES['myfile']['name'];
diff --git a/admin/inc/dbdata.php b/admin/inc/dbdata.php
index 4c13294d..1fc841ae 100755
--- a/admin/inc/dbdata.php
+++ b/admin/inc/dbdata.php
@@ -26,23 +26,32 @@
@@ -56,6 +65,9 @@
diff --git a/admin/inc/func/regPageCustom.php b/admin/inc/func/regPageCustom.php
index 9d5ca93e..3e62c846 100755
--- a/admin/inc/func/regPageCustom.php
+++ b/admin/inc/func/regPageCustom.php
@@ -560,7 +560,7 @@ function show(i) {
}
if($quotesActive==1){
?>
-
+
\ No newline at end of file
diff --git a/admin/locale/en/site_en.php b/admin/locale/en/site_en.php
index 9ae9c88e..6276556f 100755
--- a/admin/locale/en/site_en.php
+++ b/admin/locale/en/site_en.php
@@ -131,6 +131,7 @@
$regpage_choose_gall = "Choose an existing gallery";
$regpage_post = "Last posts";
$regpage_post_desc = "Shows the last three posts from the blog";
+$regpage_quote = "Quotes";
$regpage_contacts = "Contacts";
$regpage_maps = "Position on map";
$regpage_maps_title = "Insert your position on map";
diff --git a/admin/locale/it/site_it.php b/admin/locale/it/site_it.php
index 2a6f0c71..bc479e8b 100755
--- a/admin/locale/it/site_it.php
+++ b/admin/locale/it/site_it.php
@@ -131,6 +131,7 @@
$regpage_choose_gall = "Scegli una galleria";
$regpage_post = "Ultimi post";
$regpage_post_desc = "Mostra gli ultimi tre post dal blog";
+$regpage_quote = "Citazioni";
$regpage_contacts = "Contatti";
$regpage_maps = "Posizione sulla mappa";
$regpage_maps_title = "Inserimento posizione sulla mappa";