|
6 | 6 | File: application\models\Settings_model.php
|
7 | 7 | Description: Database queries for the Settings controller
|
8 | 8 |
|
9 |
| - 2020-2021 (c) Copyright GRCentral |
| 9 | + 2020-2024 (c) Copyright GRCentral |
10 | 10 | Get this on Github: http://github.com/lumian/grcentral
|
11 | 11 | ****************************************************************/
|
12 | 12 |
|
@@ -119,7 +119,7 @@ function models_edit($id=NULL, $data=NULL)
|
119 | 119 |
|
120 | 120 | function models_del($id=NULL)
|
121 | 121 | {
|
122 |
| - if (!is_null($id) AND is_numeric($id['id'])) |
| 122 | + if (!is_null($id) AND is_numeric($id)) |
123 | 123 | {
|
124 | 124 | $this->db->where('id', $id);
|
125 | 125 | $query = $this->db->delete('settings_models');
|
@@ -218,7 +218,7 @@ function models_group_edit($id=NULL, $data=NULL)
|
218 | 218 |
|
219 | 219 | function models_group_del($id=NULL)
|
220 | 220 | {
|
221 |
| - if (!is_null($id) AND is_numeric($id['id'])) |
| 221 | + if (!is_null($id) AND is_numeric($id)) |
222 | 222 | {
|
223 | 223 | $this->db->where('id', $id);
|
224 | 224 | $query = $this->db->delete('settings_models_group');
|
@@ -388,7 +388,7 @@ function params_edit($id=NULL, $data=NULL)
|
388 | 388 |
|
389 | 389 | function params_del($id=NULL)
|
390 | 390 | {
|
391 |
| - if (!is_null($id) AND is_numeric($id['id'])) |
| 391 | + if (!is_null($id) AND is_numeric($id)) |
392 | 392 | {
|
393 | 393 | $this->db->where('id', $id);
|
394 | 394 | $query = $this->db->delete('settings_params');
|
@@ -478,7 +478,7 @@ function servers_edit($id=NULL, $data=NULL)
|
478 | 478 |
|
479 | 479 | function servers_del($id=NULL)
|
480 | 480 | {
|
481 |
| - if (!is_null($id) AND is_numeric($id['id'])) |
| 481 | + if (!is_null($id) AND is_numeric($id)) |
482 | 482 | {
|
483 | 483 | $this->db->where('id', $id);
|
484 | 484 | $query = $this->db->delete('settings_servers');
|
|
0 commit comments