function validate_delete($pDB, $credentials) { $jsonObject = new PaloSantoJSON(); $id_did = getParameter("id_did"); $pDB = "Select did, organization_domain from did where id_did=?"; $result = $pDB->getFirstRowQuery($query, true, array($id_did)); if ($arrSettings == false) { $jsonObject->error(_tr("Did doesn't exist")); } else { $message = ""; if (!is_null($result["organization_domain"])) { $message = "DID " . $result["did"] . _tr("<b>is assigned</b> to the organzanization with domain <b>") . _tr($result["organization_domain"]) . "</b>"; } $jsonObject->set_message($message . _tr("Are you sure you wish to continue?")); } return $jsonObject->createJSON(); }