Skip to content

Commit

Permalink
php warnings in the user - cmc plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Sep 2, 2016
1 parent 949ea41 commit c83bf1e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion source/plugins/user/cmc/cmc.php
Expand Up @@ -32,6 +32,8 @@ class PlgUserCmc extends JPlugin
* @param object $data - the data object
*
* @return bool
*
* @since 3.0.1
*/

public function onContentPrepareForm($form, $data)
Expand Down Expand Up @@ -70,6 +72,8 @@ public function onContentPrepareForm($form, $data)
* @param array $data - the user data
*
* @return bool
*
* @since 3.0.1
*/
public function edit($form, $data)
{
Expand All @@ -93,7 +97,7 @@ public function edit($form, $data)
if ($subscriptionData)
{
$form->setFieldAttribute('newsletter', 'checked', 'checked', 'cmc');
$form->bind(CmcHelperSubscription::convertMergesToFormData($subscriptionData->merges), $this->params->get('listid'));
$form->bind(CmcHelperSubscription::convertMergesToFormData($subscriptionData->merges, $this->params->get('listid')), $this->params->get('listid'));
}
}

Expand All @@ -106,6 +110,8 @@ public function edit($form, $data)
* @return bool
*
* @throws Exception
*
* @since 3.0.1
*/
public function subscribe($form, $data)
{
Expand Down Expand Up @@ -149,6 +155,8 @@ public function subscribe($form, $data)
* @param string $error - the error message
*
* @return boolean
*
* @since 3.0.1
*/

public function onUserAfterSave($data, $isNew, $result, $error)
Expand Down Expand Up @@ -261,6 +269,8 @@ public function onUserAfterSave($data, $isNew, $result, $error)
* @param array $user - array with the user data
*
* @return array
*
* @since 3.0.1
*/
public static function getMapping($raw, $user)
{
Expand Down

0 comments on commit c83bf1e

Please sign in to comment.