Development

Changeset 6149

You must first sign up to be able to contribute.

Changeset 6149

Show
Ignore:
Timestamp:
11/23/07 05:50:46 (6 years ago)
Author:
kupokomapa
Message:

Fixed a problem with variable names.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelMigrationsLightPlugin/trunk/lib/sfMigrator.class.php

    r5736 r6149  
    312312    // check if schema_info table exists 
    313313    $result = self::executeQuery("SHOW TABLES LIKE 'schema_info'"); 
     314 
     315    $exists = false; 
    314316    if ($result instanceof PDOStatement) { 
    315317      $exists = ($result->rowCount() == 1); 
    316318    } else { 
    317       $exists = ($rs->getRecordCount() == 1); 
     319      $exists = ($result->getRecordCount() == 1); 
    318320    } 
    319321     
     
    328330      else  
    329331      { 
    330         if ($rs->next()) 
     332        if ($result->next()) 
    331333        { 
    332           $currentVersion = $rs->getInt("version"); 
     334          $currentVersion = $result->getInt("version"); 
    333335        } 
    334336        else