aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/actions
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-20 23:46:46 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-20 23:46:46 +0000
commitc3332e10712c0ec7f3540e54c794fa4dae3532f9 (patch)
tree900952540757a2ee85ce71b291095cf8d65a7891 /mod/bookmarks/actions
parent7bbb0ca2fb7e205074a9009f7604cb2c289cca73 (diff)
downloadelgg-c3332e10712c0ec7f3540e54c794fa4dae3532f9.tar.gz
elgg-c3332e10712c0ec7f3540e54c794fa4dae3532f9.tar.bz2
Refs #2551 - merged [7051] and [7053] into trunk
git-svn-id: http://code.elgg.org/elgg/trunk@7112 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/actions')
-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";