1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-31 02:41:28 +00:00

fix db_fetch_result() functionality for MySQL

This commit is contained in:
Andrew Dolgov
2005-10-16 09:19:40 +01:00
parent dc33ec9519
commit e212e483ec

5
db.php
View File

@@ -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);
}
}