Out with split(), in with explode()
This commit is contained in:
@@ -600,7 +600,7 @@ class product
|
||||
|
||||
$this->product_construct();
|
||||
$type = "add";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$result = $db->add($VAR, $this, $type);
|
||||
|
||||
@@ -623,7 +623,7 @@ class product
|
||||
function view($VAR) {
|
||||
$this->product_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);
|
||||
}
|
||||
@@ -653,7 +653,7 @@ class product
|
||||
|
||||
$this->product_construct();
|
||||
$type = "update";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$result = $db->update($VAR, $this, $type);
|
||||
|
||||
@@ -680,7 +680,7 @@ class product
|
||||
function search_form($VAR) {
|
||||
$this->product_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);
|
||||
}
|
||||
@@ -689,7 +689,7 @@ class product
|
||||
{
|
||||
$this->product_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);
|
||||
}
|
||||
@@ -697,7 +697,7 @@ class product
|
||||
function search_show($VAR) {
|
||||
$this->product_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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user