From c3332e10712c0ec7f3540e54c794fa4dae3532f9 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 20 Oct 2010 23:46:46 +0000 Subject: Refs #2551 - merged [7051] and [7053] into trunk git-svn-id: http://code.elgg.org/elgg/trunk@7112 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/actions/add.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/bookmarks/actions') 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"; -- cgit v1.2.3