Changeset 235 for trunk/lib/Lock.inc.php
- Timestamp:
- Mar 7, 2007 11:32:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Lock.inc.php
r202 r235 377 377 ?></p> 378 378 379 <?php if ($this->getSecondsElapsed() > $this->getParam('timeout')) { ?>379 <?php if ($this->getSecondsElapsed() >= $this->getParam('timeout')) { ?> 380 380 <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> 381 381 <input type="submit" name="unlock" value="<?php echo _("Unlock"); ?>" /> … … 416 416 function getSecondsElapsed() 417 417 { 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()) { 419 419 return time() - strtotime($this->data['lock_datetime']); 420 420 } else {
Note: See TracChangeset
for help on using the changeset viewer.