Commit 95b8140a authored by Alex Ne's avatar Alex Ne

Fix DB

parent e7e261f1
......@@ -348,7 +348,7 @@ class X_DB_MySQLi {
$SQL .= " `" . $table . "` ";
$SQL .= "WHERE";
$SQL .= " `" . $column . "` in('";
$SQL .= (count($data) > 1) ? implode("','", $data) : (count($data) == 1) ? array_shift($data) : "";
$SQL .= (count($data) > 1) ? implode("','", $data) : ((count($data) == 1) ? array_shift($data) : "");
$SQL .= "')";
return $this->rq($SQL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment