Skip to content

Commit

Permalink
Forgot to commit local changes to item helper for K2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Almdal committed Dec 26, 2009
1 parent 3060a6f commit 07e8371
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/gallery/helpers/item.php
Expand Up @@ -119,16 +119,16 @@ static function update($item, $fields) {
static function check_for_conflicts($item, $new_name, $new_slug) {
$errors = array();

if ($row = Database::instance()
if ($row = db::build()
->select(array("name", "slug"))
->from("items")
->where("parent_id", $item->parent_id)
->where("id <>", $item->id)
->open_paren()
->and_open()
->where("name", $new_name)
->orwhere("slug", $new_slug)
->close_paren()
->get()
->close()
->execute()
->current()) {
if ($row->name == $new_name) {
$errors["name_conflict"] = 1;
Expand Down

0 comments on commit 07e8371

Please sign in to comment.