MDL-21432 backup - improve start date offset

This commit is contained in:
Eloy Lafuente
2010-07-27 23:11:54 +00:00
parent 884482fba1
commit fc46764db6
@@ -277,6 +277,11 @@ abstract class restore_structure_step extends restore_step {
*/
protected function apply_date_offset($value) {
// 0 doesn't offset
if ($value == 0) {
return $value;
}
static $cache = array();
// Lookup cache
if (isset($cache[$this->get_restoreid()])) {