mirror of https://github.com/BOINC/boinc.git
- fix typos in two PHP scripts
svn path=/trunk/boinc/; revision=25715
This commit is contained in:
parent
761fb3f4c1
commit
0a686c5195
|
@ -4040,3 +4040,10 @@ David 25 May 2012
|
|||
revalidate.php (new)
|
||||
db/
|
||||
boinc_db_types.h
|
||||
|
||||
David 25 May 2012
|
||||
- fix typos in two PHP scripts
|
||||
|
||||
html/ops/
|
||||
repair_forums.php
|
||||
notify.php
|
||||
|
|
|
@ -62,7 +62,7 @@ function send_notify_emails() {
|
|||
$db = BoincDb::get();
|
||||
|
||||
$t = time() - (86400 + 3600); // 1-hour slop factor
|
||||
$query = "select notify.* from ".$db->name.".notify, ".$db->name.".forum_preferences where forum_preferences.pm_notification=2 and notify.userid = forum_preferences.userid and notify.create_time > $t";
|
||||
$query = "select notify.* from ".$db->db_name.".notify, ".$db->db_name.".forum_preferences where forum_preferences.pm_notification=2 and notify.userid = forum_preferences.userid and notify.create_time > $t";
|
||||
|
||||
$notifies = BoincNotify::enum_general($query);
|
||||
$userid = 0;
|
||||
|
|
|
@ -47,7 +47,7 @@ function cleanup_orphan_threads() {
|
|||
//
|
||||
function remove_backslashes($table, $field) {
|
||||
$db = BoincDb::get();
|
||||
$query = "update ".$db->name.".$table set $field=replace(replace($field, '\\\\\\\"', '\\\"'), '\\\\\\'', '\'')";
|
||||
$query = "update ".$db->db_name.".$table set $field=replace(replace($field, '\\\\\\\"', '\\\"'), '\\\\\\'', '\'')";
|
||||
$db->do_query($query);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue