Skip to content

Commit aecd590

Browse files
committed
Fixed errors on deleting various elements
1 parent 305c6b1 commit aecd590

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

webui/application/models/Phonebook_model.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
File: application\models\Phonebook_model.php
77
Description: Database queries for the Phonebook controller
88
9-
2020-2021 (c) Copyright GRCentral
9+
2020-2024 (c) Copyright GRCentral
1010
Get this on Github: http://github.com/lumian/grcentral
1111
****************************************************************/
1212

@@ -129,7 +129,7 @@ function abonent_edit_batch($data=NULL)
129129

130130
function abonent_del($id=NULL)
131131
{
132-
if (!is_null($id) AND is_numeric($id['id']))
132+
if (!is_null($id) AND is_numeric($id))
133133
{
134134
$this->db->where('id', $id);
135135
$query = $this->db->delete('phonebook_data');

webui/application/models/Settings_model.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
File: application\models\Settings_model.php
77
Description: Database queries for the Settings controller
88
9-
2020-2021 (c) Copyright GRCentral
9+
2020-2024 (c) Copyright GRCentral
1010
Get this on Github: http://github.com/lumian/grcentral
1111
****************************************************************/
1212

@@ -119,7 +119,7 @@ function models_edit($id=NULL, $data=NULL)
119119

120120
function models_del($id=NULL)
121121
{
122-
if (!is_null($id) AND is_numeric($id['id']))
122+
if (!is_null($id) AND is_numeric($id))
123123
{
124124
$this->db->where('id', $id);
125125
$query = $this->db->delete('settings_models');
@@ -218,7 +218,7 @@ function models_group_edit($id=NULL, $data=NULL)
218218

219219
function models_group_del($id=NULL)
220220
{
221-
if (!is_null($id) AND is_numeric($id['id']))
221+
if (!is_null($id) AND is_numeric($id))
222222
{
223223
$this->db->where('id', $id);
224224
$query = $this->db->delete('settings_models_group');
@@ -388,7 +388,7 @@ function params_edit($id=NULL, $data=NULL)
388388

389389
function params_del($id=NULL)
390390
{
391-
if (!is_null($id) AND is_numeric($id['id']))
391+
if (!is_null($id) AND is_numeric($id))
392392
{
393393
$this->db->where('id', $id);
394394
$query = $this->db->delete('settings_params');
@@ -478,7 +478,7 @@ function servers_edit($id=NULL, $data=NULL)
478478

479479
function servers_del($id=NULL)
480480
{
481-
if (!is_null($id) AND is_numeric($id['id']))
481+
if (!is_null($id) AND is_numeric($id))
482482
{
483483
$this->db->where('id', $id);
484484
$query = $this->db->delete('settings_servers');

0 commit comments

Comments
 (0)