PRefer explode() to split()
This commit is contained in:
parent
d1062c9340
commit
0cad5cc23c
@ -50,7 +50,7 @@ class BatchTag_Controller extends Controller {
|
|||||||
// Assuming the user can view/edit the current item, loop
|
// Assuming the user can view/edit the current item, loop
|
||||||
// through each tag that was submitted and apply it to
|
// through each tag that was submitted and apply it to
|
||||||
// the current item.
|
// the current item.
|
||||||
foreach (split(",", $input->post("name")) as $tag_name) {
|
foreach (explode(",", $input->post("name")) as $tag_name) {
|
||||||
$tag_name = trim($tag_name);
|
$tag_name = trim($tag_name);
|
||||||
if ($tag_name) {
|
if ($tag_name) {
|
||||||
tag::add($child, $tag_name);
|
tag::add($child, $tag_name);
|
||||||
|
Reference in New Issue
Block a user