Changeset 235 for trunk/lib/Lock.inc.php


Ignore:
Timestamp:
Mar 7, 2007 11:32:07 AM (17 years ago)
Author:
quinn
Message:

Q - fixed some fv->err() usage bugs, increased resolution of textColor(), improved formatting of some Utilities.inc.php functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Lock.inc.php

    r202 r235  
    377377        ?></p>
    378378
    379         <?php if ($this->getSecondsElapsed() > $this->getParam('timeout')) { ?>
     379        <?php if ($this->getSecondsElapsed() >= $this->getParam('timeout')) { ?>
    380380        <p><?php printf(_("You can forcibly unlock the record if you believe the editing session has expired. You might want to confirm with %s before doing this."), $this->getEditor()) ?></p>
    381381        <input type="submit" name="unlock" value="<?php echo _("Unlock"); ?>" />
     
    416416    function getSecondsElapsed()
    417417    {
    418         if (isset($this->data['lock_datetime']) && $this->data['lock_datetime'] < time()) {
     418        if (isset($this->data['lock_datetime']) && strtotime($this->data['lock_datetime']) < time()) {
    419419            return time() - strtotime($this->data['lock_datetime']);
    420420        } else {
Note: See TracChangeset for help on using the changeset viewer.