Changeset 542742
- Timestamp:
- 05/11/2012 08:17:14 AM (14 years ago)
- Location:
- olimometer/trunk
- Files:
-
- 2 edited
-
olimometer.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
olimometer/trunk/olimometer.php
r542494 r542742 6 6 Author: Oliver Shingler 7 7 Author URI: http://www.olivershingler.co.uk 8 Version: 2.0 28 Version: 2.03 9 9 */ 10 10 … … 173 173 } 174 174 else { 175 if( strlen(get_option("olimometer_last")) >0)175 if(get_option("olimometer_last") == 0) 176 176 { 177 $current_olimometer_id = get_option("olimometer_last");177 $current_olimometer_id = 1; 178 178 } 179 179 else { 180 $current_olimometer_id = 1;180 $current_olimometer_id = get_option("olimometer_last"); 181 181 } 182 182 } … … 1124 1124 1125 1125 // 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 { 1126 1129 $first_olimometer = new Olimometer(); 1127 1130 $first_olimometer->save(); 1131 } 1128 1132 } 1129 1133 -
olimometer/trunk/readme.txt
r542479 r542742 183 183 * Added 'Our Progress' styled thermometer skins in blue, red and green. 184 184 185 = 2.0 2=185 = 2.03 = 186 186 * Quick bug fix to prevent data loss when upgrading. 187 187 … … 256 256 * Added 'Our Progress' styled thermometer skins in blue, red and green. 257 257 258 = 2.0 2=258 = 2.03 = 259 259 * Multiple Olimometers now supported with independent progress tracking. 260 260 * Added extra currency and suffix symbols (Yen, Cent, Pence, Lira, Pesetas, Degree).
Note: See TracChangeset
for help on using the changeset viewer.