diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-10-01 17:48:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-10-01 17:48:30 -0300 |
commit | b3bbae81b7b2c8132a4e43cfa49b81fae58dd8e5 (patch) | |
tree | 28f70b6caff40a0b104177f893630c796e540e77 /src/SemanticScuttle/Service/Bookmark.php | |
parent | 9a5f69a671a0ad841d9914293efbdcef0e1b75bf (diff) | |
parent | ea04385bc16de6b7b65aab75c5c33cfe2d71ea84 (diff) | |
download | semanticscuttle-b3bbae81b7b2c8132a4e43cfa49b81fae58dd8e5.tar.gz semanticscuttle-b3bbae81b7b2c8132a4e43cfa49b81fae58dd8e5.tar.bz2 |
Merge remote-tracking branch 'querwurzelt/master' into mergev0.99.0
Diffstat (limited to 'src/SemanticScuttle/Service/Bookmark.php')
-rw-r--r-- | src/SemanticScuttle/Service/Bookmark.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index 1315350..39ec4f0 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -734,7 +734,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService $tags = explode('+', trim($tags)); } - $tagcount = count($tags); + $tagcount = empty($tags) ? 0 : count($tags); for ($i = 0; $i < $tagcount; $i ++) { $tags[$i] = trim($tags[$i]); } @@ -853,7 +853,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService $aTerms = array_map('trim', $aTerms); // Search terms in tags as well when none given - if (!count($tags)) { + if (!empty($tags)) { $query_2 .= ' LEFT JOIN '. $b2tservice->getTableName() .' AS T' . ' ON B.bId = T.bId'; $dotags = true; @@ -1136,7 +1136,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService // Delete final / if (substr($address, -1) == '/') { - $address = substr($address, 0, count($address)-2); + $address = substr($address, 0, strlen($address)-2); } return $address; |