From 1a557ce5a6e367b37e95915290c092b769ed206a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 15 Jan 2010 10:36:56 -0800 Subject: Use $value in valid_xxx() functions instead of the member field. They're equivalent, but it's more intuitive this way. --- modules/gallery/models/item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 19bdf655..9edc65ce 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -666,7 +666,7 @@ class Item_Model extends ORM_MPTT { ->from("items") ->where("parent_id", "=", $this->parent_id) ->where("id", "<>", $this->id) - ->where("slug", "=", $this->slug) + ->where("slug", "=", $value) ->count_records()) { $v->add_error("slug", "conflict"); } @@ -685,7 +685,7 @@ class Item_Model extends ORM_MPTT { ->from("items") ->where("parent_id", "=", $this->parent_id) ->where("id", "<>", $this->id) - ->where("name", "=", $this->name) + ->where("name", "=", $value) ->count_records()) { $v->add_error("name", "conflict"); } -- cgit v1.2.3