diff options
-rw-r--r-- | install.php | 12 | ||||
-rw-r--r-- | lib/noticeform.php | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/install.php b/install.php index 3786b6db1..c2a5bb29e 100644 --- a/install.php +++ b/install.php @@ -244,7 +244,7 @@ function main() */ function haveExternalLibrary($external_library) { - if(isset($external_library['include']) && ! haveIncludeFile($external_library['include'])){ + if (isset($external_library['include']) && !haveIncludeFile($external_library['include'])) { return false; } if (isset($external_library['check_function']) && ! function_exists($external_library['check_function'])) { @@ -382,19 +382,19 @@ function showLibs() E_O_T; foreach ($absent_libraries as $library) { echo '<li>'; - if(isset($library['url'])){ + if (isset($library['url'])) { echo '<a href=">'.$library['url'].'">'.htmlentities($library['name']).'</a>'; } else { echo htmlentities($library['name']); } echo '<ul>'; - if(isset($library['deb'])){ + if (isset($library['deb'])) { echo '<li class="deb package">deb: <a href="apt:' . urlencode($library['deb']) . '">' . htmlentities($library['deb']) . '</a></li>'; } - if(isset($library['rpm'])){ + if (isset($library['rpm'])) { echo '<li class="rpm package">rpm: ' . htmlentities($library['rpm']) . '</li>'; } - if(isset($library['pear'])){ + if (isset($library['pear'])) { echo '<li class="pear package">pear: ' . htmlentities($library['pear']) . '</li>'; } echo '</ul>'; @@ -406,7 +406,7 @@ E_O_T; E_O_T; foreach ($present_libraries as $library) { echo '<li>'; - if(isset($library['url'])){ + if (isset($library['url'])) { echo '<a href=">'.$library['url'].'">'.htmlentities($library['name']).'</a>'; } else { echo htmlentities($library['name']); diff --git a/lib/noticeform.php b/lib/noticeform.php index 62320dd60..186330bf1 100644 --- a/lib/noticeform.php +++ b/lib/noticeform.php @@ -90,6 +90,7 @@ class NoticeForm extends Form $this->action = $action; $this->content = $content; $this->inreplyto = $inreplyto; + if ($user) { $this->user = $user; } else { |