From: Greg Sabino Mullane Date: Thu, 7 Jun 2007 14:02:46 +0000 (+0000) Subject: Return true/false, not o/not-0 for relation checking functions, for those parts of... X-Git-Tag: 1.31.0-rc.0~52632 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=dd168ed6ea8e7825bf3cf921666a834434d1e2f2;p=lhc%2Fweb%2Fwiklou.git 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) --- 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; } /*