mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 13:30:29 +03:00
Fix missed db connection in escaping values when storing notification
This commit is contained in:
parent
96e1f4047e
commit
7113ab3158
@ -51,6 +51,7 @@ $kind = verifyparam("kind", "/^(mail|xmpp)?$/", "");
|
||||
$page['allkinds'] = array('', 'mail', 'xmpp');
|
||||
|
||||
# fetch
|
||||
$link = connect();
|
||||
|
||||
$conditions = array();
|
||||
if ($kind) {
|
||||
@ -60,7 +61,6 @@ if ($lang) {
|
||||
$conditions[] = "locale = '" . mysql_real_escape_string($lang, $link) . "'";
|
||||
}
|
||||
|
||||
$link = connect();
|
||||
select_with_pagintation(
|
||||
"id, locale, vckind, vcto, unix_timestamp(dtmcreated) as created, vcsubject, tmessage, refoperator", "${mysqlprefix}chatnotification",
|
||||
$conditions,
|
||||
|
Loading…
Reference in New Issue
Block a user