- fix typos in two PHP scripts

svn path=/trunk/boinc/; revision=25715
This commit is contained in:
David Anderson 2012-05-26 05:18:04 +00:00
parent 761fb3f4c1
commit 0a686c5195
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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;

View File

@ -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);
}