mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-11 02:06:29 +00:00
✨ QROutputAbstract::collectModules(): ignore empty modules
This commit is contained in:
@@ -169,7 +169,11 @@ abstract class QROutputAbstract implements QROutputInterface{
|
||||
}
|
||||
|
||||
// collect the modules per $M_TYPE
|
||||
$paths[$M_TYPE_LAYER][] = $transform($x, $y, $M_TYPE, $M_TYPE_LAYER);
|
||||
$module = $transform($x, $y, $M_TYPE, $M_TYPE_LAYER);
|
||||
|
||||
if(!empty($module)){
|
||||
$paths[$M_TYPE_LAYER][] = $module;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user