Out with split(), in with explode()
This commit is contained in:
@@ -145,7 +145,7 @@ class htaccess_dir
|
||||
### Create the record/verify fields
|
||||
|
||||
$type = "add";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$dir_id = $db->add($VAR, $this, $type);
|
||||
|
||||
@@ -304,7 +304,7 @@ class htaccess_dir
|
||||
|
||||
### Update the db record
|
||||
$type = "update";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$dir = $db->update($VAR, $this, $type);
|
||||
|
||||
@@ -330,9 +330,9 @@ class htaccess_dir
|
||||
{
|
||||
### Get the array
|
||||
if(isset($VAR["delete_id"]))
|
||||
$id = split(',', $VAR["delete_id"]);
|
||||
$id = explode(',', $VAR["delete_id"]);
|
||||
elseif (isset($VAR["id"]))
|
||||
$id = split(',', $VAR["id"]);
|
||||
$id = explode(',', $VAR["id"]);
|
||||
|
||||
### Loop:
|
||||
for($i=0; $i<count($id); $i++)
|
||||
@@ -395,7 +395,7 @@ class htaccess_dir
|
||||
function view($VAR)
|
||||
{
|
||||
$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);
|
||||
}
|
||||
@@ -406,7 +406,7 @@ class htaccess_dir
|
||||
function search($VAR)
|
||||
{
|
||||
$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);
|
||||
}
|
||||
@@ -418,7 +418,7 @@ class htaccess_dir
|
||||
function search_show($VAR)
|
||||
{
|
||||
$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