Prevent errors and mini enhancement of saved window in bookmarks
This commit is contained in:
parent
0fb9d0bf29
commit
51d33768b8
|
@ -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)) {
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
</head>
|
||||
<body>
|
||||
<div class="message"><h1>Saved!</h1></div>
|
||||
<a href="javascript:self.close()" >Close the window</a>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue