Hi I had a PHP notice which may be a PHP5.3 notice.
Notice: Undefined variable: output in uc_eco_help() (line 25 of sites/all/modules/uc_eco/uc_eco.module).

Maybe declare the $output somewhere in uc_eco_help before returning it. I'm no expert but... thanks!

Comments

WebNewCastle’s picture

Hi,

Thanks. Since I can't duplicate the error in order to check, can you tell me if including a simple $output = NULL at the beginning gets rid of the notice?

- Matt

lauggh’s picture

+1 subscribing

NiklasBr’s picture

Issue summary: View changes
/**
 * Implementation of hook_help().
 *
 */
function uc_eco_help($path, $arg) {
  $output = null;
  switch ($path) {
    case 'admin/help#uc_eco':
// Help is incorporated in this manner as initial module development has been done in a manner
// to make it simpler to add Advanced Help module support in the near future.
      include('help/help.php');
  }
  return $output;
}

The above works just fine!