#763826 by chx, quiptime: Fixed notices in Trigger module.

merge-requests/26/head
Angie Byron 2010-04-21 08:23:42 +00:00
parent 3d493056a0
commit 6db0ee7330
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ function trigger_assign_form($form, $form_state, $module, $hook, $label) {
$functions = array();
// Restrict the options list to actions that declare support for this hook.
foreach (actions_list() as $func => $metadata) {
if (in_array('any', $metadata['triggers']) || in_array($hook, $metadata['triggers'])) {
if (isset($metadata['triggers']) && array_intersect(array($hook, 'any'), $metadata['triggers'])) {
$functions[] = $func;
}
}