|
@@ -2474,8 +2474,8 @@ class Lampcontrol extends Base_Controller {
|
|
|
$old['faultcount'] = $new['faultcount'];
|
|
|
$this->Project_model->minus_lamp_count($old);
|
|
|
}
|
|
|
- $oldNet = $this->Network_model->getData(array('id'=>$old['networkid']));
|
|
|
- if ($old['address'] != $data['address'] || $protocoltype != $oldNet['protocoltype']) {
|
|
|
+ // $oldNet = $this->Network_model->getData(array('id'=>$old['networkid']));
|
|
|
+ if ($old['address'] != $data['address'] || $protocoltype != $old['protocoltype']) {
|
|
|
|
|
|
}
|
|
|
$this->Lamp_model->update($data,$where);
|