aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/actions/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks/actions/add.php')
-rw-r--r--mod/bookmarks/actions/add.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/bookmarks/actions/add.php b/mod/bookmarks/actions/add.php
index 6aa3bf889..eee849ff6 100644
--- a/mod/bookmarks/actions/add.php
+++ b/mod/bookmarks/actions/add.php
@@ -18,6 +18,12 @@ $notes = get_input('notes');
$access = get_input('access');
$tags = get_input('tags');
$tagarray = string_to_tag_array($tags);
+
+if (!$title || !$address) {
+ register_error(elgg_echo('bookmarks:save:failed'));
+ forward(REFERER);
+}
+
//create a new bookmark object
$entity = new ElggObject;
$entity->subtype = "bookmarks";