X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdb%2FDatabase.php;h=3fec522d66c6d7bc0edbfb74c30836bea18322a3;hb=e53676d3dd55b457d8defdf0d9e5b1df69096e0a;hp=abd4e3af59c9d0bf5c3701237df874ee01779319;hpb=3ab0c7d4d7b5b788b2f57a95408e5984d83f0c51;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/db/Database.php b/includes/db/Database.php index abd4e3af59..3fec522d66 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1286,13 +1286,14 @@ abstract class DatabaseBase implements IDatabase { * @param string|array $cond The condition array. See DatabaseBase::select() for details. * @param string $fname The function name of the caller. * @param string|array $options The query options. See DatabaseBase::select() for details. + * @param string|array $join_conds The join conditions. See DatabaseBase::select() for details. * * @return bool|array The values from the field, or false on failure * @throws DBUnexpectedError * @since 1.25 */ public function selectFieldValues( - $table, $var, $cond = '', $fname = __METHOD__, $options = array() + $table, $var, $cond = '', $fname = __METHOD__, $options = array(), $join_conds = array() ) { if ( $var === '*' ) { // sanity throw new DBUnexpectedError( $this, "Cannot use a * field: got '$var'" ); @@ -1302,7 +1303,7 @@ abstract class DatabaseBase implements IDatabase { $options = array( $options ); } - $res = $this->select( $table, $var, $cond, $fname, $options ); + $res = $this->select( $table, $var, $cond, $fname, $options, $join_conds ); if ( $res === false ) { return false; }