Syntax Error

SemperFideles - August 30, 2007 - 12:58
Project:Community Managed Taxonomy
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Benjamin Melançon
Status:active
Description

I just tried installing this module. I get the following error:

Parse error: syntax error, unexpected '=', expecting ')' in /home/triapolo/public_html/modules/cmt/cmt.module on line 1096

Here is line 1096 and the lines below it:

function cmt_build_ladder($tid, &$ladders = array(), $ladder = 0, $level = 0, $lterm = array() \) {
  if ($parents = cmt_get_parents($tid, 'tid')) {
    $level = $level + 1;
    $ladders[$ladder][$level] = $parents;
    $terms = array_keys($parents);
    sort($terms);  // sort function works by reference
    $tid = $terms[0];
    $lterm[$level] = $tid;
    cmt_build_ladder($tid, $ladders, $ladder, $level, $lterm);
  }

#1

Snaders - November 2, 2007 - 14:35

I am getting this error as well.

My message is similar, however not defined as syntax error.
Parse error: parse error, unexpected '=', expecting ')' in /home/content/n/i/c/*mydomain*/html/modules/cmt.bak/cmt.module on line 1100.

Can anyone explain a solution for this?

#2

Benjamin Melançon - April 16, 2008 - 16:55
Priority:normal» critical
Assigned to:Anonymous» Benjamin Melançon

Yeah, I can explain this. Your module maintainer is an idiot who didn't know how to check the issue queues.

Fix forthcoming.

 
 

Drupal is a registered trademark of Dries Buytaert.