Skip to content

Commit

Permalink
create new member
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyLSB committed Mar 9, 2012
1 parent 1a8a4b8 commit d82d75d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _bundle.php
Expand Up @@ -14,6 +14,13 @@ public function __callExtend($func, $args) {
list($category, $name) = explode(':', $slug, 2);
$result = e::$sql->query("SELECT * FROM `taxonomy.tag` WHERE `name` = '$name' AND `category` = '$category'")->row();
$run = 1; if($result) return $this->getTag($result);
else {
$tag = $this->newTag();
$tag->category = $category;
$tag->name = $name;
$tag->save();
return $tag;
}
}
throw new e\AutoLoadException;
}
Expand Down

0 comments on commit d82d75d

Please sign in to comment.