[geeklog-cvs] Geeklog-1.x/public_html/admin/install index.php, 1.9, 1.10

Dirk Haun dhaun at qs1489.pair.com
Sat Sep 1 15:41:51 EDT 2007


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install
In directory qs1489.pair.com:/tmp/cvs-serv79247/public_html/admin/install

Modified Files:
	index.php 
Log Message:
Small optimization


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** index.php	1 Sep 2007 18:08:30 -0000	1.9
--- index.php	1 Sep 2007 19:41:49 -0000	1.10
***************
*** 859,867 ****
  {
      global $use_innodb;
!     for ($i=0; $i<sizeof($_SQL); $i++) {
!         if ($use_innodb) {
              $_SQL[$i] = str_replace('MyISAM', 'InnoDB', $_SQL[$i]);
          }
      }
      return $_SQL;
  }
--- 859,870 ----
  {
      global $use_innodb;
! 
!     if ($use_innodb) {
!         $statements = count($_SQL);
!         for ($i = 0; $i < $statements; $i++) {
              $_SQL[$i] = str_replace('MyISAM', 'InnoDB', $_SQL[$i]);
          }
      }
+ 
      return $_SQL;
  }




More information about the geeklog-cvs mailing list