summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-17 13:55:11 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-17 13:55:11 -0700
commit2eeacd2656083739a588738b28d578e616d46c9c (patch)
treec6fdcf8ea834ef04f1e936e7e99d6c59ecf34fb1
parent6458b47e3ed3ef31d08080a66781ee53bf0f25ed (diff)
use an implicit cast to convert the translated error message to a string as it is encoded by the json routines and will be treated as an object otherwise
-rw-r--r--modules/tag/controllers/admin_tags.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php
index ced73d65..b42e3748 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 = t("There is already a tag with that name")->__toString();
+ $error_msg = (string)t("There is already a tag with that name");
$valid = false;
}
} else {