fixed up curly brackets and spaces around for, if, else

This commit is contained in:
Brenda Wallace 2009-09-13 18:31:44 +12:00
parent 36aa89d695
commit f5b7ea7396

View File

@ -352,8 +352,7 @@ function showLibs()
<h2>Absent Libraries</h2>
<ul id="absent_libraries">
E_O_T;
foreach($absent_libraries as $library)
{
foreach ($absent_libraries as $library) {
echo '<li>';
if ($library['url']) {
echo '<a href=">'.$library['url'].'">'.htmlentities($library['name']).'</a>';
@ -377,8 +376,7 @@ E_O_T;
<h2>Installed Libraries</h2>
<ul id="present_libraries">
E_O_T;
foreach($present_libraries as $library)
{
foreach ($present_libraries as $library) {
echo '<li>';
if ($library['url']) {
echo '<a href=">'.$library['url'].'">'.htmlentities($library['name']).'</a>';
@ -603,8 +601,7 @@ function pgsql_db_installer($host, $database, $username, $password) {
if (empty($password)) {
$sqlUrl = "pgsql://$username@$host/$database";
}
else {
} else {
$sqlUrl = "pgsql://$username:$password@$host/$database";
}