]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix db_fetch_result() functionality for MySQL
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 16 Oct 2005 08:19:40 +0000 (09:19 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 16 Oct 2005 08:19:40 +0000 (09:19 +0100)
db.php

diff --git a/db.php b/db.php
index 44187db0f3d1bcfdf8ce275b94bd60052b909db2..35985815baf795b42cd1a2f313f5ea3a0c298bfd 100644 (file)
--- 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);
        }
 }