Skip to content

Commit

Permalink
Update fluentcrm.php
Browse files Browse the repository at this point in the history
Fixed issue: Class 'Exception' not found
  • Loading branch information
wpoet-dev committed Jan 2, 2024
1 parent 60437c3 commit a77809f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluentcrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function contact_add($atts, $content = null, $shortcode=null){
$temp_debug['error_type']='plugin_error';
\aw2\live_debug\publish_event(['event'=>$temp_debug,'bgcolor'=>'#FFC3C3']);
}
throw new Exception('FluentCRM is not active.');
throw new \Exception('FluentCRM is not active.');
}


Expand All @@ -39,7 +39,7 @@ function contact_add($atts, $content = null, $shortcode=null){
$temp_debug['error_type']='json_fail';
\aw2\live_debug\publish_event(['event'=>$temp_debug,'bgcolor'=>'#FFC3C3']);
}
throw new Exception('Issue with JSON data.');
throw new \Exception('Issue with JSON data.');
}

$contactApi = FluentCrmApi('contacts');
Expand Down

0 comments on commit a77809f

Please sign in to comment.