fixing get_remote_ip() quoting
This commit is contained in:
parent
06076b6fe0
commit
b6eb1e668c
|
@ -142,9 +142,9 @@ class m_mem {
|
||||||
// End AuthIP
|
// End AuthIP
|
||||||
|
|
||||||
if ($restrictip) {
|
if ($restrictip) {
|
||||||
$ip = "'" . get_remote_ip() . "'";
|
$ip = get_remote_ip();
|
||||||
} else {
|
} else {
|
||||||
$ip = "''";
|
$ip = "";
|
||||||
}
|
}
|
||||||
/* Close sessions that are more than 2 days old. */
|
/* Close sessions that are more than 2 days old. */
|
||||||
$db->query("DELETE FROM sessions WHERE DATE_ADD(ts,INTERVAL 2 DAY)<NOW();");
|
$db->query("DELETE FROM sessions WHERE DATE_ADD(ts,INTERVAL 2 DAY)<NOW();");
|
||||||
|
|
Loading…
Reference in New Issue