Fix: possibility to have more hooks in the same page

New: add left search block hook and extra left block hook
This commit is contained in:
Regis Houssin 2011-06-01 17:17:23 +00:00
parent 363d50805a
commit 089039d6ef
2 changed files with 4 additions and 4 deletions

View File

@ -40,8 +40,8 @@
<a name="<?php echo $line->id; ?>"></a>
<?php
if (! empty($this->hooks)) {
foreach($this->hooks as $module) {
if (! empty($this->hooks['objectcard'])) {
foreach($this->hooks['objectcard'] as $module) {
$module->formEditProductOptions($this,$line->fk_parent_line);
echo '<br>';
}

View File

@ -48,8 +48,8 @@
echo ' - '.nl2br($line->product_label);
echo '<br>';
if (! empty($this->hooks)) {
foreach($this->hooks as $module) {
if (! empty($this->hooks['objectcard'])) {
foreach($this->hooks['objectcard'] as $module) {
$module->formEditProductOptions($this,$line->fk_parent_line);
echo '<br>';
}