summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-08-10 08:51:41 +0000
committerthomascube <thomas@roundcube.net>2007-08-10 08:51:41 +0000
commit31d9efd97d9da09605d4329457ee218cba48f82f (patch)
tree6b2ae88d0a9074f1b09aed0635057416fce854fd /program
parent719a257f0c8fd750a4984ed56273dc653565729e (diff)
Simplified code + removed debug log
Diffstat (limited to 'program')
-rw-r--r--program/include/main.inc5
-rw-r--r--program/js/app.js9
2 files changed, 4 insertions, 10 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 4b8aa68d5..19d421441 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -234,10 +234,7 @@ function rcmail_authenticate_session()
// check session filetime
if (!empty($CONFIG['session_lifetime']) && isset($SESS_CHANGED) && $SESS_CHANGED + $CONFIG['session_lifetime']*60 < time())
$valid = false;
-
- if (!$valid)
- write_log('timeouts', $_SESSION + array('SESS_CLIENT_IP' => $SESS_CLIENT_IP, 'SESS_CHANGED' => $SESS_CHANGED, 'COOKIE' => $_COOKIE));
-
+
return $valid;
}
diff --git a/program/js/app.js b/program/js/app.js
index 6cf9d4850..78e2b1afa 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1683,13 +1683,10 @@ function rcube_webmail()
}
// check for empty body
- if ((input_message.value=='')&&(tinyMCE == null ? true : (tinyMCE.getContent()=='' || tinyMCE.getContent() == null)))
+ if ((input_message.value == '' || (window.tinyMCE && tinyMCE.getContent() == '')) && !confirm(this.get_label('nobodywarning')))
{
- if (!confirm(this.get_label('nobodywarning')))
- {
- input_message.focus();
- return false;
- }
+ input_message.focus();
+ return false;
}
return true;