mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +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() { /* {{{ */
|
||||
$tbllist = $this->db->TableList();
|
||||
if(!array_search('tblVersion', $tbllist))
|
||||
$tbllist = explode(',',strtolower(join(',',$tbllist)));
|
||||
if(!array_search('tblversion', $tbllist))
|
||||
return false;
|
||||
$queryStr = "SELECT * FROM tblVersion order by major,minor,subminor limit 1";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
@ -217,7 +218,8 @@ class LetoDMS_Core_DMS {
|
|||
*/
|
||||
function checkVersion() { /* {{{ */
|
||||
$tbllist = $this->db->TableList();
|
||||
if(!array_search('tblVersion', $tbllist))
|
||||
$tbllist = explode(',',strtolower(join(',',$tbllist)));
|
||||
if(!array_search('tblversion', $tbllist))
|
||||
return false;
|
||||
$queryStr = "SELECT * FROM tblVersion order by major,minor,subminor limit 1";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user