Code: Select all
PHP Notice: Undefined index: api_token in /home/gqvxzdmy/public_html/glowkl/storage/modification/catalog/controller/api/order.php on line 814
if (!isset($this->session->data['api_token']) && $this->session->data['api_token']) {
and full code is as this
Code: Select all
public function jntHistory() {
$this->load->language('api/order');
$json = array();
if (!isset($this->session->data['api_token']) && $this->session->data['api_token']) {
$json['error'] = $this->language->get('error_permission');
} else {
// Add keys for missing post vars
$keys = array(
'order_status_id',
'notify',
'override',
'comment'
);
foreach ($keys as $key) {
if (!isset($this->request->post[$key])) {
$this->request->post[$key] = '';
}
}