Prevent errors and mini enhancement of saved window in bookmarks

This commit is contained in:
Brice Maron 2012-06-24 21:30:14 +00:00
parent 0fb9d0bf29
commit 51d33768b8
2 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,8 @@ function addBookmark($url, $title, $tags='') {
if(empty($title)) {
$metadata = getURLMetadata($url);
$title = $metadata['title'];
if(isset($metadata['title'])) // Check for problems fetching the title
$title = $metadata['title'];
}
if(empty($title)) {

View File

@ -6,5 +6,6 @@
</head>
<body>
<div class="message"><h1>Saved!</h1></div>
<a href="javascript:self.close()" >Close the window</a>
</body>
</html>