Add curly braces

This commit is contained in:
Romain Neutron
2012-04-26 01:55:12 +02:00
parent ade22295ad
commit 33b10d6746
86 changed files with 2969 additions and 2698 deletions

View File

@@ -71,11 +71,13 @@ class queries
$session = $appbox->get_session();
$registry = $appbox->get_registry();
if (file_exists($registry->get('GV_RootPath') . 'config/topics/topics_' . $session->get_I18n() . '.xml'))
if (file_exists($registry->get('GV_RootPath') . 'config/topics/topics_' . $session->get_I18n() . '.xml')) {
return true;
}
if (file_exists($registry->get('GV_RootPath') . 'config/topics/topics.xml'))
if (file_exists($registry->get('GV_RootPath') . 'config/topics/topics.xml')) {
return true;
}
return false;
}
@@ -239,8 +241,10 @@ class queries
private static function hastopics(&$topics)
{
foreach ($topics->topics as $subtopic)
foreach ($topics->topics as $subtopic) {
return true;
}
return false;
}