summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/tag/controllers/admin_tags.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php
index b42e3748..63f7957c 100644
--- a/modules/tag/controllers/admin_tags.php
+++ b/modules/tag/controllers/admin_tags.php
@@ -89,7 +89,7 @@ class Admin_Tags_Controller extends Admin_Controller {
$new_name = $this->input->post("name");
$new_tag = ORM::factory("tag")->where("name", $new_name)->find();
if ($new_tag->loaded) {
- $error_msg = (string)t("There is already a tag with that name");
+ $error_msg = t("There is already a tag with that name");
$valid = false;
}
} else {
@@ -115,7 +115,7 @@ class Admin_Tags_Controller extends Admin_Controller {
} else {
print json_encode(
array("result" => "error",
- "message" => $error_msg));
+ "message" => (string) $error_msg));
}
}
}