diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-09-17 14:04:13 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-09-17 14:04:13 -0700 |
commit | d050f0a2466fedfe96c3bbc072374d01b17951c5 (patch) | |
tree | fe27614a8d0a9107e819e7983026bdc893b43c48 /modules | |
parent | 2eeacd2656083739a588738b28d578e616d46c9c (diff) |
Minor style fix: (string) $var, not (string)$var, and move the explicit cast down where it's needed.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tag/controllers/admin_tags.php | 4 |
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)); } } } |