diff --git a/checkin_notes b/checkin_notes index a3b6739fa3..86a6894835 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/html/ops/notify.php b/html/ops/notify.php index 11cd62aacf..1ce42608c4 100755 --- a/html/ops/notify.php +++ b/html/ops/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; diff --git a/html/ops/repair_forums.php b/html/ops/repair_forums.php index 46f703d022..9a639b8a93 100644 --- a/html/ops/repair_forums.php +++ b/html/ops/repair_forums.php @@ -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); }