customer edit fix

This commit is contained in:
SJ 2013-08-09 15:17:02 +02:00
parent 2a8c13d774
commit 6c33eb2645

View File

@ -58,7 +58,7 @@ class ModelSaasCustomer extends Model
if(!isset($arr['id']) || !isset($arr['domain']) || !isset($arr['branding_text'])) { return 0; } if(!isset($arr['id']) || !isset($arr['domain']) || !isset($arr['branding_text'])) { return 0; }
if(isset($_FILES['branding_logo']['name'])) { if(isset($_FILES['branding_logo']['name']) && $_FILES['branding_logo']['name']) {
$branding_logo = $_FILES['branding_logo']['name']; $branding_logo = $_FILES['branding_logo']['name'];
move_uploaded_file($_FILES['branding_logo']['tmp_name'], DIR_BASE . "/images/" . $_FILES['branding_logo']['name']); move_uploaded_file($_FILES['branding_logo']['tmp_name'], DIR_BASE . "/images/" . $_FILES['branding_logo']['name']);