summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle
diff options
context:
space:
mode:
authorMark Pemberton <mpemberton5@gmail.com>2011-05-16 00:35:31 -0400
committerMark Pemberton <mpemberton5@gmail.com>2011-05-16 00:35:31 -0400
commit10214c43b51e99cc3f8f58a4c4e8893eb2480e62 (patch)
tree16f51f136146ed09d9e9a27e2b9a781be716e8b7 /src/SemanticScuttle
parent16791766dee4f9c03700b7c817063071e4d0ed33 (diff)
downloadsemanticscuttle-10214c43b51e99cc3f8f58a4c4e8893eb2480e62.tar.gz
semanticscuttle-10214c43b51e99cc3f8f58a4c4e8893eb2480e62.tar.bz2
Updated 'Generate New Key' button to use ajax if javascript enabled.
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php
index 57d0b2e..9a075be 100644
--- a/src/SemanticScuttle/Service/Bookmark.php
+++ b/src/SemanticScuttle/Service/Bookmark.php
@@ -728,14 +728,15 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
$privacy = ' AND B.bStatus = 0';
}
+ $tagcount = 0;
// Set up the tags, if need be.
- if (!is_array($tags) && !is_null($tags)) {
+ if (!is_array($tags) && !is_null($tags) && $tags<>"") {
$tags = explode('+', trim($tags));
- }
- $tagcount = count($tags);
- for ($i = 0; $i < $tagcount; $i ++) {
- $tags[$i] = trim($tags[$i]);
+ $tagcount = count($tags);
+ for ($i = 0; $i < $tagcount; $i ++) {
+ $tags[$i] = trim($tags[$i]);
+ }
}
// Set up the SQL query.