From dd168ed6ea8e7825bf3cf921666a834434d1e2f2 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 7 Jun 2007 14:02:46 +0000 Subject: [PATCH] Return true/false, not o/not-0 for relation checking functions, for those parts of the code that demand "result === false" rather than saying (!result) --- includes/DatabasePostgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index d5ae93cc54..7e5736b7af 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -923,7 +923,7 @@ class DatabasePostgres extends Database { $count = $res ? pg_num_rows($res) : 0; if ($res) $this->freeResult( $res ); - return $count; + return $count ? true : false; } /* -- 2.20.1