diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-12-04 11:06:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-12-04 11:06:29 +0000 |
commit | b7094195cb53d7d5cdd75a19b377e88234830028 (patch) | |
tree | 640d53a74b241dccfcf533b768c8d9856b53ef11 /includes/database.pgsql.inc | |
parent | 225ebf38fe3ff6c69804cbb9ea0e58b6aa5097d4 (diff) | |
download | brdo-b7094195cb53d7d5cdd75a19b377e88234830028.tar.gz brdo-b7094195cb53d7d5cdd75a19b377e88234830028.tar.bz2 |
- Patch #98988 by Robert Douglass et al: db_result should return FALSE if no result was found. Consistent with PHP's mysql_result.
Diffstat (limited to 'includes/database.pgsql.inc')
-rw-r--r-- | includes/database.pgsql.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc index 1d4612b72..5dd9f61f4 100644 --- a/includes/database.pgsql.inc +++ b/includes/database.pgsql.inc @@ -202,7 +202,7 @@ function db_num_rows($result) { * @param $row * The index of the row whose result is needed. * @return - * The resulting field. + * The resulting field or FALSE. */ function db_result($result, $row = 0) { if ($result && pg_num_rows($result) > $row) { @@ -210,6 +210,7 @@ function db_result($result, $row = 0) { return $res[0]; } + return FALSE; } /** |