diff --git a/html/inc/boinc_db.inc b/html/inc/boinc_db.inc
index ee6bf66c6b..acbab10b82 100644
--- a/html/inc/boinc_db.inc
+++ b/html/inc/boinc_db.inc
@@ -360,9 +360,9 @@ class BoincProfile {
$db = BoincDb::get();
return $db->enum('profile', 'BoincProfile', $clause, $clause2);
}
- static function enum_fields($fields, $clause=null, $clause2=null) {
+ static function enum_fields($fields, $where_clause=null, $order_clause=null) {
$db = BoincDb::get();
- return $db->enum_fields('profile', 'BoincProfile', $fields, $clause, $clause2);
+ return $db->enum_fields('profile', 'BoincProfile', $fields, $where_clause, $order_clause);
}
function delete_aux($clause) {
$db = BoincDb::get();
diff --git a/lib/parse_test.cpp b/lib/parse_test.cpp
index 2811514cec..8c05b6b0bf 100644
--- a/lib/parse_test.cpp
+++ b/lib/parse_test.cpp
@@ -45,6 +45,10 @@ void parse(FILE* f) {
int main() {
FILE* f = fopen("foo.xml", "r");
+ if (!f) {
+ fprintf(stderr, "no file\n");
+ exit(1);
+ }
parse(f);
}