}
} else {
# Delay USE query
- $success = !!$this->mConn;
+ $success = (bool)$this->mConn;
}
if ( !$success ) {
$table = $this->tableName( $table );
$sql = "UPDATE $table SET $var = '" .
$this->strencode( $value ) . "' WHERE ($cond)";
- return !!$this->query( $sql, DB_MASTER, $fname );
+ return (bool)$this->query( $sql, DB_MASTER, $fname );
}
/**
} else {
$sql .= '(' . $this->makeList( $a ) . ')';
}
- return !!$this->query( $sql, $fname );
+ return (bool)$this->query( $sql, $fname );
}
/**
'rc_namespace' => $row->page_namespace,
'rc_title' => $row->page_title,
'rc_comment' => $row->rev_comment,
- 'rc_minor' => !!$row->rev_minor_edit,
+ 'rc_minor' => $row->rev_minor_edit ? 1 : 0,
'rc_type' => $row->page_is_new ? RC_NEW : RC_EDIT,
'rc_cur_id' => $row->page_id,
'rc_this_oldid' => (int)$row->rev_id,