diff --git a/interface/lib/classes/remote.d/sites.inc.php b/interface/lib/classes/remote.d/sites.inc.php index a043ce118a53bd80920b1683eefabbfcbaa1c93c..19958010bec883d1207ef08b50522bf99b4fd64a 100644 --- a/interface/lib/classes/remote.d/sites.inc.php +++ b/interface/lib/classes/remote.d/sites.inc.php @@ -774,10 +774,12 @@ class remoting_sites extends remoting { } else { $status = 'n'; } - $sql = "UPDATE web_domain SET active = '$status' WHERE domain_id = ".$app->functions->intval($primary_id); - $app->db->query($sql); - $result = $app->db->affectedRows(); - return $result; + $app->remoting_lib->loadFormDef('../sites/form/web_domain.tform.php'); + $params = $app->remoting_lib->getDataRecord($primary_id); + $params['active'] = $status; + + $affected_rows = $this->updateQuery('../sites/form/web_domain.tform.php', 0, $primary_id, $params); + return $affected_rows; } else { throw new SoapFault('status_undefined', 'The status is not available'); return false;