1
0
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:
Cameron
2020-12-20 11:50:10 -08:00
parent 6b5cc07929
commit 601df26d51
91 changed files with 522 additions and 482 deletions

View File

@@ -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');