[eluser]Devon Lambert[/eluser]
Hi Luis,
Found a minor bug/error in the script and I made the following update.
Error: undefined index 'class' was being thrown at line 918.
The code:
Code:
foreach($loaded_hooks[$point] as $hook)
{
$hooks[] = array(
'class' => $hook['class'],
'function' => $hook['function'],
'filename' => $hook['filename'],
'filepath' => $hook['filepath']
);
}
However, I have a loaded hook that does not specify a 'class'.
Instead I used this code:
Code:
foreach($loaded_hooks[$point] as $hook)
{
$hooks[] = array(
'class' => isset($hook['class']) ? $hook['class'] : '',
'function' => $hook['function'],
'filename' => $hook['filename'],
'filepath' => $hook['filepath']
);
}
Hope this helps. :-)