Out with split(), in with explode()
This commit is contained in:
@@ -59,7 +59,7 @@ class email_template
|
||||
{
|
||||
$this->construct();
|
||||
$type = "add";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->add($VAR, $this, $type);
|
||||
}
|
||||
@@ -71,7 +71,7 @@ class email_template
|
||||
{
|
||||
$this->construct();
|
||||
$type = "view";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->view($VAR, $this, $type);
|
||||
}
|
||||
@@ -83,7 +83,7 @@ class email_template
|
||||
{
|
||||
$this->construct();
|
||||
$type = "update";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->update($VAR, $this, $type);
|
||||
}
|
||||
@@ -108,7 +108,7 @@ class email_template
|
||||
{
|
||||
$this->construct();
|
||||
$type = "search";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->search_form($VAR, $this, $type);
|
||||
}
|
||||
@@ -120,7 +120,7 @@ class email_template
|
||||
{
|
||||
$this->construct();
|
||||
$type = "search";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->search($VAR, $this, $type);
|
||||
}
|
||||
@@ -133,7 +133,7 @@ class email_template
|
||||
{
|
||||
$this->construct();
|
||||
$type = "search";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->search_show($VAR, $this, $type);
|
||||
}
|
||||
@@ -240,10 +240,10 @@ class email_template
|
||||
$E['from_email'] = $setup_email->fields['from_email'];
|
||||
|
||||
if($setup_email->fields['cc_list'] != '')
|
||||
$E['cc_list'] = split(',', $setup_email->fields['cc_list']);
|
||||
$E['cc_list'] = explode(',', $setup_email->fields['cc_list']);
|
||||
|
||||
if($setup_email->fields['bcc_list'] != '')
|
||||
$E['bcc_list'] = split(',', $setup_email->fields['bcc_list']);
|
||||
$E['bcc_list'] = explode(',', $setup_email->fields['bcc_list']);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user