mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-11 23:46:35 -04:00
Refactored the empty object initialization to make it easier to clone to other model functions.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user