mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 14:37:20 +00:00
- make check for table tblVersion case insensitive
This commit is contained in:
parent
3192692be2
commit
0df18f1a01
|
@ -197,7 +197,8 @@ class LetoDMS_Core_DMS {
|
||||||
*/
|
*/
|
||||||
function getDBVersion() { /* {{{ */
|
function getDBVersion() { /* {{{ */
|
||||||
$tbllist = $this->db->TableList();
|
$tbllist = $this->db->TableList();
|
||||||
if(!array_search('tblVersion', $tbllist))
|
$tbllist = explode(',',strtolower(join(',',$tbllist)));
|
||||||
|
if(!array_search('tblversion', $tbllist))
|
||||||
return false;
|
return false;
|
||||||
$queryStr = "SELECT * FROM tblVersion order by major,minor,subminor limit 1";
|
$queryStr = "SELECT * FROM tblVersion order by major,minor,subminor limit 1";
|
||||||
$resArr = $this->db->getResultArray($queryStr);
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
|
@ -217,7 +218,8 @@ class LetoDMS_Core_DMS {
|
||||||
*/
|
*/
|
||||||
function checkVersion() { /* {{{ */
|
function checkVersion() { /* {{{ */
|
||||||
$tbllist = $this->db->TableList();
|
$tbllist = $this->db->TableList();
|
||||||
if(!array_search('tblVersion', $tbllist))
|
$tbllist = explode(',',strtolower(join(',',$tbllist)));
|
||||||
|
if(!array_search('tblversion', $tbllist))
|
||||||
return false;
|
return false;
|
||||||
$queryStr = "SELECT * FROM tblVersion order by major,minor,subminor limit 1";
|
$queryStr = "SELECT * FROM tblVersion order by major,minor,subminor limit 1";
|
||||||
$resArr = $this->db->getResultArray($queryStr);
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user