mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-20 17:54:25 +01:00
Prevent errors and mini enhancement of saved window in bookmarks
This commit is contained in:
parent
63959909c0
commit
6bb2c54fdd
@ -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…
x
Reference in New Issue
Block a user