mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Code optimization for speed and reduced memory usage.
This commit is contained in:
@@ -749,7 +749,7 @@ class db_verify
|
||||
{
|
||||
$key = array_flip($tabl);
|
||||
|
||||
if(substr($cur,0,4)=="lan_") // language table adjustment.
|
||||
if(strpos($cur,"lan_") === 0) // language table adjustment.
|
||||
{
|
||||
list($tmp,$lang,$cur) = explode("_",$cur,3);
|
||||
}
|
||||
@@ -773,7 +773,7 @@ class db_verify
|
||||
function getFixQuery($mode, $table, $field, $sqlFileData, $engine = 'MyISAM' )
|
||||
{
|
||||
|
||||
if(substr($mode,0,5)== 'index')
|
||||
if(strpos($mode, 'index') === 0)
|
||||
{
|
||||
$fdata = $this->getIndex($sqlFileData);
|
||||
$newval = $this->toMysql($fdata[$field],'index');
|
||||
|
Reference in New Issue
Block a user