Added fixed asset related db changes in upgrade class.
[fa-stable.git] / admin / company_preferences.php
index 186d06bf848f45e0d419a7595e61c383597a3f6c..74b7071bbe76a9b4e926bd1f045fa9809d6c1946 100644 (file)
@@ -38,6 +38,14 @@ if (isset($_POST['update']) && $_POST['update'] != "")
        }
        if (isset($_FILES['pic']) && $_FILES['pic']['name'] != '')
        {
+    if ($_FILES['pic']['error'] == UPLOAD_ERR_INI_SIZE) {
+                       display_error(_('The file size is over the maximum allowed.'));
+                       $input_error = 1;
+    }
+    elseif ($_FILES['pic']['error'] > 0) {
+                       display_error(_('Error uploading logo file.'));
+                       $input_error = 1;
+    }
                $result = $_FILES['pic']['error'];
                $filename = company_path()."/images";
                if (!file_exists($filename))