From: Andrew Dolgov Date: Sun, 16 Oct 2005 08:19:40 +0000 (+0100) Subject: fix db_fetch_result() functionality for MySQL X-Git-Tag: 1.0.7~59 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e212e483ec21175a4d20f20b3456334df9e3566f;p=tt-rss.git fix db_fetch_result() functionality for MySQL --- 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); } }