Permalink
Browse files

Corrected the @return description + setRequest() now actually sets th…

…e object
  • Loading branch information...
1 parent 828bfd7 commit bb263d90d3a353329d79b5e9f8e4b69e52a22c7d @hm2k hm2k committed Jan 31, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 Services/Mailman.php
View
8 Services/Mailman.php
@@ -178,9 +178,7 @@ public function setadminPW($string)
*/
public function setRequest(HTTP_Request2 $object = null)
{
- if ($object === null) {
- $this->request = new HTTP_Request2();
- }
+ $this->request = ($object instanceof HTTP_Request2) ? $object : new HTTP_Request2();
return $this;
}
@@ -259,7 +257,7 @@ public function lists($assoc = true)
*
* @param string $string A search string for member
*
- * @return string Returns unparsed HTML
+ * @return string Return an array of members that match the string
*
* @throws {@link Services_Mailman_Exception}
*/
@@ -417,7 +415,7 @@ public function subscribe($email, $invite = false)
*
* @param bool $digest Set the Digest on (1) or off (0)
*
- * @return string Returns unparsed HTML
+ * @return string Returns 1 if set on, or 0 if set off.
*
* @throws {@link Services_Mailman_Exception}
*/

0 comments on commit bb263d9

Please sign in to comment.