summaryrefslogtreecommitdiff
path: root/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-10-16 09:19:40 +0100
committerAndrew Dolgov <[email protected]>2005-10-16 09:19:40 +0100
commite212e483ec21175a4d20f20b3456334df9e3566f (patch)
treecdf284438cdbe0ce2eec1984011a4890cd231711 /db.php
parentdc33ec95198a83b845ae69c956e16d24ca8ecffc (diff)
fix db_fetch_result() functionality for MySQL
Diffstat (limited to 'db.php')
-rw-r--r--db.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/db.php b/db.php
index 44187db0f..35985815b 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);
}
}