*

ahmose

  • *
  • 4 posts
Undefined variable $error_num
« on: November 27, 2022, 07:17:10 PM »
i got this Warning from functions.php
Quote
<br /> <b>Warning</b>: Undefined variable $error_num in <b> oc-content/plugins/sms/functions.php</b> on line <b>417</b><br />

its caused by this line :


Quote
  if($error_num > 0) {
    $output['status'] = 'ERROR';
    $output['message'] = $error;
  }


which i suggest to be replaced with this one

Quote
  if(isset($error_num)) {
    $output['status'] = 'ERROR';
    $output['message'] = $error;
  }

please correct me if i missed something.

*

MB Themes

Re: Undefined variable $error_num
« Reply #1 on: December 01, 2022, 10:47:05 PM »
There will be fix in next update.
Easy way to fix is to add $error_num = 0; at start
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots