@@ 344-349 (lines=6) @@ | ||
341 | $exptime = 0; |
|
342 | } |
|
343 | ||
344 | if ( $exptime == 0 ) { |
|
345 | $encExpiry = $this->getMaxDateTime( $db ); |
|
346 | } else { |
|
347 | $exptime = $this->convertExpiry( $exptime ); |
|
348 | $encExpiry = $db->timestamp( $exptime ); |
|
349 | } |
|
350 | foreach ( $serverKeys as $tableName => $tableKeys ) { |
|
351 | $rows = []; |
|
352 | foreach ( $tableKeys as $key ) { |
|
@@ 399-404 (lines=6) @@ | ||
396 | $exptime = 0; |
|
397 | } |
|
398 | ||
399 | if ( $exptime == 0 ) { |
|
400 | $encExpiry = $this->getMaxDateTime( $db ); |
|
401 | } else { |
|
402 | $exptime = $this->convertExpiry( $exptime ); |
|
403 | $encExpiry = $db->timestamp( $exptime ); |
|
404 | } |
|
405 | // (bug 24425) use a replace if the db supports it instead of |
|
406 | // delete/insert to avoid clashes with conflicting keynames |
|
407 | $db->update( |