diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 12:09:04 -0800 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 12:09:04 -0800 | 
| commit | 1fd0e14359a7c7164573e4aa897c07680339e713 (patch) | |
| tree | 62b01b88571e53810aa7f3efc2f0f01e727904e2 /modules/tag/helpers | |
| parent | 22823df22098ed1a69d88c2e5fdc30cd90f72c30 (diff) | |
Convert all DB where() calls to take 3 arguments.
Convert all open_paren() calls to and_open() or or_open() as appropriate.
Diffstat (limited to 'modules/tag/helpers')
| -rw-r--r-- | modules/tag/helpers/tag.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index 8694bcec..c4c4ba15 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -33,7 +33,7 @@ class tag_Core {        throw new exception("@todo MISSING_TAG_NAME");      } -    $tag = ORM::factory("tag")->where("name", $tag_name)->find(); +    $tag = ORM::factory("tag")->where("name", "=", $tag_name)->find();      if (!$tag->loaded()) {        $tag->name = $tag_name;        $tag->count = 0; @@ -93,7 +93,7 @@ class tag_Core {               ->select("name")               ->from("tags")               ->join("items_tags", "tags.id", "items_tags.tag_id", "left") -             ->where("items_tags.item_id", $item->id) +             ->where("items_tags.item_id", "=", $item->id)               ->get() as $row) {        $tags[] = $row->name;      } | 
