Ignore:
Timestamp:
Oct 19, 2013, 7:43:04 PM (11 years ago)
Author:
mistic100
Message:

remove all array_push (50% slower than []) + some changes missing for feature:2978

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/dblayer/functions_mysqli.inc.php

    r24346 r25018  
    366366          $column.= " collate '".$row['Collation']."'";
    367367        }
    368         array_push($columns, $column);
     368        $columns[] = $column;
    369369      }
    370370    }
     
    602602  while ($row = pwg_db_fetch_row($result))
    603603  {
    604     array_push($all_tables, $row[0]);
     604    $all_tables[] = $row[0];
    605605  }
    606606
     
    620620      if ($row['Key'] == 'PRI')
    621621      {
    622         array_push($all_primary_key, $row['Field']);
     622        $all_primary_key[] = $row['Field'];
    623623      }
    624624    }
     
    636636  if ($mysqli_rc)
    637637  {
    638     array_push(
    639           $page['infos'],
    640           l10n('All optimizations have been successfully completed.')
    641           );
     638    $page['infos'][] = l10n('All optimizations have been successfully completed.');
    642639  }
    643640  else
    644641  {
    645     array_push(
    646           $page['errors'],
    647           l10n('Optimizations have been completed with some errors.')
    648           );
     642    $page['errors'][] = l10n('Optimizations have been completed with some errors.');
    649643  }
    650644}
Note: See TracChangeset for help on using the changeset viewer.