Change-Id: Ia2788ea84bd099550655930188365984e5274678
$table, $var, $cond = '', $fname = __METHOD__, $options = array(), $join_conds = array()
) {
if ( $var === '*' ) { // sanity
$table, $var, $cond = '', $fname = __METHOD__, $options = array(), $join_conds = array()
) {
if ( $var === '*' ) { // sanity
- throw new DBUnexpectedError( $this, "Cannot use a * field: got '$var'" );
+ throw new DBUnexpectedError( $this, "Cannot use a * field" );
+ } elseif ( !is_string( $var ) ) { // sanity
+ throw new DBUnexpectedError( $this, "Cannot use an array of fields" );
}
if ( !is_array( $options ) ) {
}
if ( !is_array( $options ) ) {