UpdateDatabase/MysqlEngineCharset.php
authorAlan Knowles <alan@roojs.com>
Thu, 22 Jun 2017 06:26:57 +0000 (14:26 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 Jun 2017 06:26:57 +0000 (14:26 +0800)
UpdateDatabase/MysqlEngineCharset.php

index c840866..a5d18a5 100644 (file)
@@ -114,10 +114,14 @@ class Pman_Core_UpdateDatabase_MysqlEngineCharset {
         // first check if database is using this format.
         
         
-        
-        $db = DB_DataObject::factory('core_enum')->getDatabaseConnection();
-        $views = $db->getListOf( 'views');  // needs updated pear... 
-        
+        $dbo = DB_DataObject::factory('core_enum');
+        if (is_a($dbo, 'PDO_DataObject')) {
+            
+            
+        } else {
+            $db = DB_DataObject::factory('core_enum')->getDatabaseConnection();
+            $views = $db->getListOf( 'views');  // needs updated pear... 
+        }