1
tvepsorg
Team Module Error!!
  • 2005/2/13 23:02

  • tvepsorg

  • Quite a regular

  • Posts: 276

  • Since: 2004/5/18


Hi, I'm the founder of our online gaming team. I'm using the Team module to try and set up a match for us, but when I try to edit a "line up" for the match, it gives me the following error when in debug mode:

Quote:

Fatal error: Call to undefined function: inval() in /home2/rick/public_html/modules/team/class/lineupposition.php on line 82

I can do the initial submit without any problems, but when editing the error occurs. Here is what is in and around line 82 of that php file:

Quote:

function store()
{
if ( !isset($this->lineupid) ) {
$sql = "INSERT INTO ".$this->table."
(posid, posdesc, uid, matchid, mapid)
VALUES (".intval($this->posid).", ".$this->db->quoteString($this->posdesc).", ".intval($this->uid).", ".intval($this->matchid).", ".intval($this->mapid).")";
} else {
$sql = "UPDATE ".$this->table."
SET uid=".intval($this->uid).",
posdesc=".$this->db->quoteString($this->posdesc).",
posid=".inval($this->posid).",
matchid=".intval($this->matchid).", <---line 82
mapid=".intval($this->mapid)."
WHERE lineupid = ".intval($this->lineupid);
$newlineupid = $this->lineupid;
}
if (!$result = $this->db->queryF($sql)) {
return false;
}
if ( empty($newlineupid) ) {
$newlineupid = $this->db->getInsertId();
$this->lineupid = $newlineupid;
}
return $newlineupid;
}

function lineupid()
{
return $this->lineupid;
}

function posid()
{
return $this->posid;
}

function posdesc()
{
return $this->posdesc;
}

function uid()
{
return $this->uid;
}

function matchid()
{
return $this->matchid;
}

function mapid()
{
return $this->mapid;
}

}
?>

Anyone have any idea what's causing this error and how I can fix it?

2
tvepsorg
Re: Team Module Error!!
  • 2005/2/13 23:18

  • tvepsorg

  • Quite a regular

  • Posts: 276

  • Since: 2004/5/18


Wow... I feel really stupid... it was the line above it. Change inval to intval. Module works with now problems now. Sorry for the wasted space.