CVS update: /cowiki/htdocs/setup/class/task/migrator/

[email protected] 14 Jul 2005 23:50:12 -0000
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
User: dgorski 
Date: 2005/07/14 16:50:12

Modified:
   cowiki/htdocs/setup/class/task/migrator/class.Migrator_20050513_02.php

Log:
 Avoid "PHP Notice:  Undefined index:  Engine in ..."

File Changes:

Directory: /cowiki/htdocs/setup/class/task/migrator/
====================================================

File [changed]: class.Migrator_20050513_02.php
Url: http://cowiki.tigris.org/source/browse/cowiki/htdocs/setup/class/task/migrator/class.Migrator_20050513_02.php?r1=1.2&r2=1.3
Delta lines:  +3 -3
-------------------
--- class.Migrator_20050513_02.php	14 Jul 2005 03:28:53 -0000	1.2
+++ class.Migrator_20050513_02.php	14 Jul 2005 23:50:10 -0000	1.3
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.Migrator_20050513_02.php,v 1.2 2005/07/14 03:28:53 dgorski Exp $
+ * $Id: class.Migrator_20050513_02.php,v 1.3 2005/07/14 23:50:10 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.2 $
+ * @version     $Revision: 1.3 $
  *
  */
 
@@ -100,7 +100,7 @@
         $rResult = $Storage->query('SHOW TABLE STATUS LIKE "cowiki_%"');
 
         while ($aData = $Storage->fetchArray($rResult)) {
-            if ($aData['Engine'] == 'MyISAM') {
+            if (isset($aData['Engine']) && $aData['Engine'] == 'MyISAM') {
                 return true;
             }
         }