Plugin Directory

Changeset 382439


Ignore:
Timestamp:
05/08/2011 01:23:13 PM (15 years ago)
Author:
tetele
Message:

FIX: when updating settings for the first time, the values for mix/max were set to 0. Now works fine, saving values correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • automatic-post-scheduler/trunk/settings.php

    r313569 r382439  
    8585    );
    8686   
    87     $data['min'] *= $factors[$data['min_unit']];
    88     $data['max'] *= $factors[$data['max_unit']];
     87    $data['min'] *= isset( $factors[$data['min_unit']] ) ? $factors[$data['min_unit']] : 1;
     88    $data['max'] *= isset( $factors[$data['max_unit']] ) ? $factors[$data['max_unit']] : 1;
    8989   
    9090    unset( $data['min_unit'], $data['max_unit'] );
Note: See TracChangeset for help on using the changeset viewer.