Fix undefined array key warnings in productos module
Added $info array initialization with default values for proveedorId and prodCatId to prevent 'Trying to access array offset on null' warnings in search-productos.tpl and enumProdCatSearch.tpl templates.
This commit is contained in:
@@ -33,7 +33,13 @@
|
|||||||
$msg = $_SESSION['msgP'];
|
$msg = $_SESSION['msgP'];
|
||||||
$_SESSION['msgP'] = '';
|
$_SESSION['msgP'] = '';
|
||||||
|
|
||||||
|
$info = array(
|
||||||
|
'proveedorId' => '',
|
||||||
|
'prodCatId' => ''
|
||||||
|
);
|
||||||
|
|
||||||
$smarty->assign('msg', $msg);
|
$smarty->assign('msg', $msg);
|
||||||
|
$smarty->assign('info', $info);
|
||||||
$smarty->assign('categorias', $categorias);
|
$smarty->assign('categorias', $categorias);
|
||||||
$smarty->assign('proveedores', $proveedores);
|
$smarty->assign('proveedores', $proveedores);
|
||||||
$smarty->assign('productos', $productos);
|
$smarty->assign('productos', $productos);
|
||||||
|
|||||||
Reference in New Issue
Block a user