From 8712062c94c34294e71964732ed9c11eac74e3a4 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 24 Aug 2011 12:47:42 +0000 Subject: [PATCH] Fix documentation (clearing w/c) --- includes/db/Database.php | 9 +++------ includes/db/LoadBalancer.php | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index fc0f1848dc..be06053e94 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -2295,14 +2295,11 @@ abstract class DatabaseBase implements DatabaseType { * to collide. However if you do this, you run the risk of encountering * errors which wouldn't have occurred in MySQL. * - * @param $rows Can be either a single row to insert, or multiple rows, + * @param $table String: The table to replace the row(s) in. + * @param $rows array Can be either a single row to insert, or multiple rows, * in the same format as for DatabaseBase::insert() - * @param $uniqueIndexes is an array of indexes. Each element may be either + * @param $uniqueIndexes array is an array of indexes. Each element may be either * a field name or an array of field names - * - * @param $table String: The table to replace the row(s) in. - * @param $uniqueIndexes Array: An associative array of indexes - * @param $rows Array: Array of rows to replace * @param $fname String: Calling function name (use __METHOD__) for logs/profiling */ function replace( $table, $uniqueIndexes, $rows, $fname = 'DatabaseBase::replace' ) { diff --git a/includes/db/LoadBalancer.php b/includes/db/LoadBalancer.php index 171ca2ed21..506ceb98bb 100644 --- a/includes/db/LoadBalancer.php +++ b/includes/db/LoadBalancer.php @@ -117,7 +117,7 @@ class LoadBalancer { return false; } $max = mt_getrandmax(); - $rand = mt_rand(0, $max) / $max * $sum; + $rand = mt_rand( 0, $max ) / $max * $sum; $sum = 0; foreach ( $weights as $i => $w ) { -- 2.20.1