Index: trunk/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -546,7 +546,7 @@ |
547 | 547 | $vars = get_object_vars($table); |
548 | 548 | $table = array_pop( $vars ); |
549 | 549 | |
550 | | - if( strpos( $table, $prefix ) === 0 || is_null( $prefix ) ) { |
| 550 | + if( empty( $prefix ) || strpos( $table, $prefix ) === 0 ) { |
551 | 551 | $endArray[] = $table; |
552 | 552 | } |
553 | 553 | } |
Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -620,7 +620,7 @@ |
621 | 621 | $result = $this->select( |
622 | 622 | 'sqlite_master', |
623 | 623 | 'name', |
624 | | - "type='TABLE'" |
| 624 | + "type='table'" |
625 | 625 | ); |
626 | 626 | |
627 | 627 | $endArray = array(); |
— | — | @@ -629,7 +629,7 @@ |
630 | 630 | $vars = get_object_vars($table); |
631 | 631 | $table = array_pop( $vars ); |
632 | 632 | |
633 | | - if( strpos( $table, $prefix ) === 0 || is_null( $prefix ) ) { |
| 633 | + if( empty( $prefix ) || strpos( $table, $prefix ) === 0 ) { |
634 | 634 | $endArray[] = $table; |
635 | 635 | } |
636 | 636 | } |