Refactored the empty object initialization to make it easier to clone to other model functions.

This commit is contained in:
Steve Ireland
2023-03-25 20:43:28 -04:00
parent 34ee5cc752
commit c70fcdbe60
4 changed files with 84 additions and 44 deletions

View File

@@ -378,7 +378,7 @@ class Items extends Secure_Controller
$data['tax_category'] = '';
}
$data['logo_exists'] = $item_info->pic_filename !== '';
$data['logo_exists'] = $item_info->pic_filename !== null;
$file_extension = pathinfo($item_info->pic_filename, PATHINFO_EXTENSION);
if(empty($file_extension))