@@ -31,10 +31,10 @@ |
||
| 31 | 31 | // |
| 32 | 32 | function show_platforms() { |
| 33 | 33 | $xmlFragment = unserialize(get_cached_data(3600, "project_config_platform_xml")); |
| 34 | - if ($xmlFragment==false){ |
|
| 34 | + if ($xmlFragment==false) { |
|
| 35 | 35 | $platforms = BoincDb::get()->enum_fields("platform, DBNAME.app_version, DBNAME.app", "BoincPlatform", "platform.name, platform.user_friendly_name, plan_class", "app_version.platformid = platform.id and app_version.appid = app.id and app_version.deprecated=0 and app.deprecated=0 group by platform.name, plan_class", ""); |
| 36 | 36 | $xmlFragment = " <platforms>"; |
| 37 | - foreach ($platforms as $platform){ |
|
| 37 | + foreach ($platforms as $platform) { |
|
| 38 | 38 | $xmlFragment .= " |
| 39 | 39 | <platform> |
| 40 | 40 | <platform_name>$platform->name</platform_name> |
@@ -387,10 +387,10 @@ |
||
| 387 | 387 | $db = BoincDb::get(); |
| 388 | 388 | return $db->enum('result', 'BoincResult', $where_clause, $order_clause); |
| 389 | 389 | } |
| 390 | - static function enum_fields($fields, $where_clause, $order_clause) { |
|
| 390 | + static function enum_fields($fields, $where_clause, $order_clause) { |
|
| 391 | 391 | $db = BoincDb::get(); |
| 392 | - return $db->enum_fields('result', 'BoincResult', $fields, $where_clause, $order_clause); |
|
| 393 | - } |
|
| 392 | + return $db->enum_fields('result', 'BoincResult', $fields, $where_clause, $order_clause); |
|
| 393 | + } |
|
| 394 | 394 | function update($clause) { |
| 395 | 395 | $db = BoincDb::get(); |
| 396 | 396 | return $db->update($this, 'result', $clause); |