summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/settag.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/settag.php b/scripts/settag.php
index 1d7b60b90..e91d5eb50 100644
--- a/scripts/settag.php
+++ b/scripts/settag.php
@@ -50,7 +50,7 @@ if (empty($sn)) {
$tags = $sn->getTags();
-$i = array_search($tags, $tag);
+$i = array_search($tag, $tags);
if ($i !== false) {
if (have_option('d', 'delete')) { // Delete