Plugin Directory

Changeset 542742


Ignore:
Timestamp:
05/11/2012 08:17:14 AM (14 years ago)
Author:
oshingler
Message:
 
Location:
olimometer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • olimometer/trunk/olimometer.php

    r542494 r542742  
    66Author: Oliver Shingler
    77Author URI: http://www.olivershingler.co.uk
    8 Version: 2.02
     8Version: 2.03
    99*/
    1010
     
    173173    }
    174174    else {
    175         if(strlen(get_option("olimometer_last")) > 0)
     175        if(get_option("olimometer_last") == 0)
    176176        {
    177             $current_olimometer_id = get_option("olimometer_last");
     177            $current_olimometer_id = 1;
    178178        }
    179179        else {
    180             $current_olimometer_id = 1;
     180            $current_olimometer_id = get_option("olimometer_last");
    181181        }
    182182    }
     
    11241124   
    11251125    // Now, create the first olimometer object if one doesn't exist:
     1126    $olimometer_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $table_name;" ) );
     1127    if($olimometer_count == 0)
     1128    {
    11261129        $first_olimometer = new Olimometer();
    11271130        $first_olimometer->save(); 
     1131    }
    11281132}
    11291133
  • olimometer/trunk/readme.txt

    r542479 r542742  
    183183* Added 'Our Progress' styled thermometer skins in blue, red and green.
    184184
    185 = 2.02 =
     185= 2.03 =
    186186* Quick bug fix to prevent data loss when upgrading.
    187187
     
    256256* Added 'Our Progress' styled thermometer skins in blue, red and green.
    257257
    258 = 2.02 =
     258= 2.03 =
    259259* Multiple Olimometers now supported with independent progress tracking.
    260260* Added extra currency and suffix symbols (Yen, Cent, Pence, Lira, Pesetas, Degree).
Note: See TracChangeset for help on using the changeset viewer.