Commit ad84f1fd authored by profix898's avatar profix898

- bugfix: undefined key 'params' warning

parent 83168467
<?php
// $Id: G2DrupalHelper.class,v 1.0 2008/02/10 12:59:20 profix898 Exp $
// $Id: G2DrupalHelper.class,v 1.1 2008/02/10 22:39:51 profix898 Exp $
/**
* Class G2DrupalHelper {}.
......@@ -14,7 +14,8 @@ class G2DrupalHelper {
// Store event parameters
$listener['events'] = is_array($listener['events']) ? $listener['events'] : array($listener['events']);
foreach ($listener['events'] as $event) {
G2DrupalHelper::eventParams($event, $listener['params']);
$params = isset($listener['params']) ? $listener['params'] : NULL;
G2DrupalHelper::eventParams($event, $params);
}
// Register event listener
$ret = GalleryCoreApi::registerFactoryImplementationForRequest(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment