* finish task #7803.

This commit is contained in:
z
2020-09-07 14:06:04 +08:00
parent 5a5119fdbc
commit 7b224fd95f
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ class apiModel extends model
*/
public function sql($sql, $keyField = '')
{
if(!$this->config->features->apiGetSQL) return false;
if(!$this->config->features->apiGetSQL) return sprintf($this->lang->api->error->disabled, '$config->features->apiSQL');
$sql = trim($sql);
if(strpos($sql, ';') !== false) $sql = substr($sql, 0, strpos($sql, ';'));