* @param string $method The API method to call
* @param array $params The parameters to send along
*
- * @return void
+ * @return string
*/
protected function _buildMultipart($method, $params)
{
// well, files will only work in multipart methods
if (! $this->_detectMultipart($method)) {
- return;
+ return '';
}
// only check specific parameters
);
// method might have files?
if (! in_array($method, array_keys($possible_files))) {
- return;
+ return '';
}
$possible_files = explode(' ', $possible_files[$method]);
// is it an array?
if (is_array($value)) {
throw new \Exception('Using URL-encoded parameters is not supported for uploading media.');
- continue;
}
// check for filenames
function draw_board() {
if(! strlen($this->yours))
$this->yours = 'XXX';
- $o .= "<form action=\"tictac/{$this->handicap}/{$this->mefirst}/{$this->dimen}/{$this->yours}/{$this->mine}\" method=\"post\" />";
+ $o = "<form action=\"tictac/{$this->handicap}/{$this->mefirst}/{$this->dimen}/{$this->yours}/{$this->mine}\" method=\"post\" />";
for($x = 0; $x < $this->dimen; $x ++) {
$o .= '<table>';
for($y = 0; $y < $this->dimen; $y ++) {