aboutsummaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service/Bookmark2Tag.php
diff options
context:
space:
mode:
authorquerwurzelt <>2019-01-20 22:19:33 +0100
committerquerwurzelt <>2019-01-21 22:15:21 +0100
commitea04385bc16de6b7b65aab75c5c33cfe2d71ea84 (patch)
treece675e51c2604149cb8a949b7ef3d92e98bc2f52 /src/SemanticScuttle/Service/Bookmark2Tag.php
parente636523aac630d73cda415cf551d0be570ce10d6 (diff)
downloadsemanticscuttle-ea04385bc16de6b7b65aab75c5c33cfe2d71ea84.tar.gz
semanticscuttle-ea04385bc16de6b7b65aab75c5c33cfe2d71ea84.tar.bz2
PHP 7.3 compat, bug fixes
Diffstat (limited to 'src/SemanticScuttle/Service/Bookmark2Tag.php')
-rw-r--r--src/SemanticScuttle/Service/Bookmark2Tag.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark2Tag.php b/src/SemanticScuttle/Service/Bookmark2Tag.php
index a01b5d7..2579022 100644
--- a/src/SemanticScuttle/Service/Bookmark2Tag.php
+++ b/src/SemanticScuttle/Service/Bookmark2Tag.php
@@ -691,14 +691,12 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService
}
if ($sortOrder == 'alphabet_asc') {
- usort($output, create_function('$a,$b','return strcasecmp(utf8_deaccent($a["tag"]), utf8_deaccent($b["tag"]));'));
+ usort($output, "cmp");
}
return $output;
}
-
-
/**
* Deletes all tags in bookmarks2tags
*
@@ -711,4 +709,10 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService
}
}
+
+function cmp($a,$b)
+{
+ return strcasecmp(utf8_deaccent($a["tag"]), utf8_deaccent($b["tag"]));
+}
+
?>