Skip to content

Commit

Permalink
PRefer explode() to split()
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Feb 1, 2010
1 parent d1062c9 commit 0cad5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/batchtag/controllers/batchtag.php
Expand Up @@ -50,7 +50,7 @@ public function tagitems() {
// Assuming the user can view/edit the current item, loop
// through each tag that was submitted and apply it to
// the current item.
foreach (split(",", $input->post("name")) as $tag_name) {
foreach (explode(",", $input->post("name")) as $tag_name) {
$tag_name = trim($tag_name);
if ($tag_name) {
tag::add($child, $tag_name);
Expand Down

0 comments on commit 0cad5cc

Please sign in to comment.