From 2eeacd2656083739a588738b28d578e616d46c9c Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 17 Sep 2009 13:55:11 -0700 Subject: 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 --- modules/tag/controllers/admin_tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 { -- cgit v1.2.3