From e212e483ec21175a4d20f20b3456334df9e3566f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 16 Oct 2005 09:19:40 +0100 Subject: [PATCH] fix db_fetch_result() functionality for MySQL --- db.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db.php b/db.php index 44187db0..35985815 100644 --- a/db.php +++ b/db.php @@ -96,9 +96,8 @@ function db_fetch_result($result, $row, $param) { if (DB_TYPE == "pgsql") { return pg_fetch_result($result, $row, $param); } else if (DB_TYPE == "mysql") { - // FIXME - $line = mysql_fetch_assoc($result); - return $line[$param]; + // I hate incoherent naming of PHP functions + return mysql_result($result, $row, $param); } } -- 2.39.5