diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-20 23:46:46 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-20 23:46:46 +0000 |
commit | c3332e10712c0ec7f3540e54c794fa4dae3532f9 (patch) | |
tree | 900952540757a2ee85ce71b291095cf8d65a7891 /mod/bookmarks/actions | |
parent | 7bbb0ca2fb7e205074a9009f7604cb2c289cca73 (diff) | |
download | elgg-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.php | 6 |
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"; |