barbass: исправлены опечатки

parent 5ae9cdce
......@@ -14,7 +14,7 @@ window.document.onkeydown = function(e) {
var ETY = {
time: 0, //время последнего запроса
server_url: "http://barbass.pubsandbox.eterhost.ru/typos/server2.php",
server_url: "http://barbass.pubsandbox.eterhost.ru/typos/server.php",
control_panel: function() {
if (document.getElementById("e_typos_div").style.display == "block") {
......
......@@ -72,7 +72,7 @@ if (check_header() === 0 || get_ip() === 0) {
try {
$query_emails = "SELECT r.id_site AS site, u.email AS email
FROM users AS u, responsible AS r
WHERE u.id IN (
WHERE r.id IN (
SELECT r.id
FROM responsible AS r
JOIN sites AS s
......@@ -97,7 +97,7 @@ try {
echo ($ajax_mess);
exit;
}
if (count($email_users) != 0) {
if ($email_users !== 0) {
try {
$data = array('NULL', $email_users[0]['site'], $url, $error_text, $email, $comment, 0);
$STH = $DBH->prepare("INSERT INTO messages (id, id_site, link, error_text, email, comment, datetime, status) VALUES (?, ?, ?, ?, ?, ?, DATE_FORMAT(NOW(), '%Y-%m-%d %H:%i:%s'), ?)");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment