]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix errors in statusnet addon
authorArt4 <art4@wlabs.de>
Sun, 24 Nov 2024 19:55:54 +0000 (19:55 +0000)
committerArt4 <art4@wlabs.de>
Sun, 24 Nov 2024 19:55:54 +0000 (19:55 +0000)
statusnet/library/codebirdsn.php
tictac/tictac.php

index 020c69c4896bd898274fc803bc8cfbbdd6b8fda6..325bcb07267efc2bd5da72484021f9e3df8613c8 100644 (file)
@@ -762,13 +762,13 @@ class CodebirdSN
      * @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
@@ -783,7 +783,7 @@ class CodebirdSN
         );
         // method might have files?
         if (! in_array($method, array_keys($possible_files))) {
-            return;
+            return '';
         }
 
         $possible_files = explode(' ', $possible_files[$method]);
@@ -794,7 +794,6 @@ class CodebirdSN
             // 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
index dc9f0348ac8a9964dbb354081b2035b50eaa3d11..10103835517f1668d921d653f6985e09f55845bc 100644 (file)
@@ -631,7 +631,7 @@ function winning_move() {
   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 ++) {