diff --git a/e107_plugins/pm/languages/admin/English.php b/e107_plugins/pm/languages/admin/English.php index 01b532781..7420857e9 100755 --- a/e107_plugins/pm/languages/admin/English.php +++ b/e107_plugins/pm/languages/admin/English.php @@ -18,8 +18,8 @@ define('ADLAN_PM_15', "Add PM Limit"); define('ADLAN_PM_16', "Plugin Title"); define('ADLAN_PM_17', "Show new PM animation"); define('ADLAN_PM_18', "Show user dropdown"); -define('ADLAN_PM_19', "READ message timeout"); -define('ADLAN_PM_20', "UNREAD message timeout"); +define('ADLAN_PM_19', "READ message timeout (days)"); +define('ADLAN_PM_20', "UNREAD message timeout (days)"); define('ADLAN_PM_21', "Popup notification on new PM"); define('ADLAN_PM_22', "Popup delay timeout"); define('ADLAN_PM_23', "Restrict PM use to"); diff --git a/e107_plugins/pm/pm.php b/e107_plugins/pm/pm.php index cc92fd0ba..542af729e 100755 --- a/e107_plugins/pm/pm.php +++ b/e107_plugins/pm/pm.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm.php,v $ -| $Revision: 1.6 $ -| $Date: 2007-09-22 17:41:20 $ -| $Author: e107steved $ +| $Revision: 1.7 $ +| $Date: 2008-02-02 22:41:55 $ +| $Author: mcfly_e107 $ +----------------------------------------------------------------------------+ */ @@ -55,12 +55,12 @@ $read_timeout = intval($pm_prefs['read_timeout']); $unread_timeout = intval($pm_prefs['unread_timeout']); if($read_timeout > 0) { - $timeout = time()-($read_timeout * 60); + $timeout = time()-($read_timeout * 86400); $del_qry[] = "(pm_sent < {$timeout} AND pm_read > 0)"; } if($unread_timeout > 0) { - $timeout = time()-($unread_timeout * 60); + $timeout = time()-($unread_timeout * 86400); $del_qry[] = "(pm_sent < {$timeout} AND pm_read = 0)"; } if(count($del_qry) > 0)