1
0

PRefer explode() to split()

This commit is contained in:
Bharat Mediratta 2010-02-01 00:53:35 -08:00
parent d1062c9340
commit 0cad5cc23c

View File

@ -50,7 +50,7 @@ class BatchTag_Controller extends Controller {
// 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);