diff --git a/src/system/database/dedesqlite.class.php b/src/system/database/dedesqlite.class.php index f15afede..b39a726e 100755 --- a/src/system/database/dedesqlite.class.php +++ b/src/system/database/dedesqlite.class.php @@ -163,6 +163,10 @@ class DedeSqlite function Esc($_str) { + global $dsqlite; + if (!$dsqlite->isInit) { + $this->Init($this->pconnect); + } return $this->linkID->escapeString($_str); }