diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-15 10:36:56 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-15 10:36:56 -0800 |
commit | 1a557ce5a6e367b37e95915290c092b769ed206a (patch) | |
tree | 6a906bcb56964170461f9c3322309cbe87c6b52b /modules/gallery/models | |
parent | b3e328c9ff4c3e19df4b6d18da947b759fe0c201 (diff) |
Use $value in valid_xxx() functions instead of the member field. They're equivalent, but it's more intuitive this way.
Diffstat (limited to 'modules/gallery/models')
-rw-r--r-- | modules/gallery/models/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |