r22813 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r22812
|
r22813
|
r22814
>
Date:
14:02, 7 June 2007
Author:
greg
Status:
old
Tags:
Comment:
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)
Modified paths:
/trunk/phase3/includes/DatabasePostgres.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/DatabasePostgres.php
—
—
@@ -923,7 +923,7 @@
924
924
$count = $res ? pg_num_rows($res) : 0;
925
925
if ($res)
926
926
$this->freeResult( $res );
927
- return $count;
927
+ return $count ? true : false;
928
928
}
929
929
930
930
/*
Follow-up revisions
Revision
Commit summary
Author
Date
r22857
Merged revisions 22811-22855 via svnmerge from...
david
00:48, 9 June 2007
Status & tagging log
15:16, 12 September 2011
Meno25
(
talk
|
contribs
)
changed the
status
of r22813
[
removed:
ok
added:
old]