diff options
| author | Christian Fowler <spider@viovio.com> | 2005-06-21 16:45:47 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2005-06-21 16:45:47 +0000 |
| commit | 08f14ee48a3689d149a9103cae6fa6662f47c3bb (patch) | |
| tree | 270370ddf6c5f069d16266369f1d287a22dea19d | |
| parent | f88c59ad981152b85b8d01652cddd0d99e5f84e5 (diff) | |
| download | kernel-08f14ee48a3689d149a9103cae6fa6662f47c3bb.tar.gz kernel-08f14ee48a3689d149a9103cae6fa6662f47c3bb.tar.bz2 kernel-08f14ee48a3689d149a9103cae6fa6662f47c3bb.zip | |
fix verifyInstalledPackages for prefixes
| -rwxr-xr-x | BitSystem.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/BitSystem.php b/BitSystem.php index 1225a79..aadbcfa 100755 --- a/BitSystem.php +++ b/BitSystem.php @@ -14,7 +14,7 @@ // +----------------------------------------------------------------------+ // | Authors: spider <spider@steelsun.com> // +----------------------------------------------------------------------+ -// $Id: BitSystem.php,v 1.6 2005/06/19 21:07:50 squareing Exp $ +// $Id: BitSystem.php,v 1.7 2005/06/21 16:45:47 spiderr Exp $ /** * kernel::BitSystem * @@ -29,7 +29,7 @@ * is Package specific should be moved into that package * * @author spider <spider@steelsun.com> -* @version $Revision: 1.6 $ +* @version $Revision: 1.7 $ * @access public */ @@ -881,6 +881,7 @@ asort( $this->mAppMenu ); * @access public */ function verifyInstalledPackages() { + global $gBitDbType; $this->scanPackages( 'admin/schema_inc.php' ); if( $this->isDatabaseValid() ) { $lastQuote = strrpos( BIT_DB_PREFIX, '`' ); @@ -888,8 +889,8 @@ asort( $this->mAppMenu ); $lastQuote++; } $prefix = substr( BIT_DB_PREFIX, $lastQuote ); - if ( $prefix ) $prefix .= '%'; - if( $dbTables = $this->mDb->MetaTables('TABLES', FALSE, $prefix ) ) { + $showTables = ( $prefix ? $prefix.'%' : NULL ); + if( $dbTables = $this->mDb->MetaTables('TABLES', FALSE, $showTables ) ) { foreach( array_keys( $this->mPackages ) as $package ) { if( !empty( $this->mPackages[$package]['tables'] ) ) { foreach( array_keys( $this->mPackages[$package]['tables'] ) as $table ) { |
