Corrected Stickler CI errors.
This commit is contained in:
parent
2114680123
commit
894caf1ada
@ -2542,9 +2542,9 @@ class Form
|
|||||||
global $langs, $conf;
|
global $langs, $conf;
|
||||||
global $hookmanager;
|
global $hookmanager;
|
||||||
|
|
||||||
if (empty($hookmanager->hooks)) {
|
if (empty($hookmanager->hooks)) {
|
||||||
$hookmanager->initHooks(array('commonobject'));
|
$hookmanager->initHooks(array('commonobject'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
$outarray = array();
|
$outarray = array();
|
||||||
@ -2901,11 +2901,11 @@ class Form
|
|||||||
protected function constructProductListOption(&$objp, &$opt, &$optJson, $price_level, $selected, $hidepriceinlabel = 0, $filterkey = '', $novirtualstock = 0)
|
protected function constructProductListOption(&$objp, &$opt, &$optJson, $price_level, $selected, $hidepriceinlabel = 0, $filterkey = '', $novirtualstock = 0)
|
||||||
{
|
{
|
||||||
global $langs, $conf, $user;
|
global $langs, $conf, $user;
|
||||||
global $hookmanager;
|
global $hookmanager;
|
||||||
|
|
||||||
if (empty($hookmanager->hooks)) {
|
if (empty($hookmanager->hooks)) {
|
||||||
$hookmanager->initHooks(array('commonobject'));
|
$hookmanager->initHooks(array('commonobject'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$outkey = '';
|
$outkey = '';
|
||||||
$outval = '';
|
$outval = '';
|
||||||
@ -3191,13 +3191,13 @@ class Form
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$parameters = array('objp'=>$objp);
|
$parameters = array('objp'=>$objp);
|
||||||
$reshook = $hookmanager->executeHooks('constructProductListOption', $parameters); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('constructProductListOption', $parameters); // Note that $action and $object may have been modified by hook
|
||||||
if (!empty($reshook)) {
|
if (!empty($reshook)) {
|
||||||
$opt = $hookmanager->resPrint;
|
$opt = $hookmanager->resPrint;
|
||||||
} else {
|
} else {
|
||||||
$opt .= $hookmanager->resPrint;
|
$opt .= $hookmanager->resPrint;
|
||||||
}
|
}
|
||||||
|
|
||||||
$opt .= "</option>\n";
|
$opt .= "</option>\n";
|
||||||
$optJson = array(
|
$optJson = array(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user