diff options
author | alecpl <alec@alec.pl> | 2010-01-28 11:27:16 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-01-28 11:27:16 +0000 |
commit | 10eedbe75a2022d65ec349de5f3bd12400191974 (patch) | |
tree | 13df2e006a7cbbca30f464877493e4c3f0b67d21 /program/include/rcube_imap.php | |
parent | 4fc7a7e5f633f10dac29a9bd7e77bb23e3f9585e (diff) |
- add file/line definitions to raise_error() calls
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 8d200363b..9137ada99 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -105,8 +105,9 @@ class rcube_imap if ($use_ssl && extension_loaded('openssl')) $ICL_SSL = $use_ssl == 'imaps' ? 'ssl' : $use_ssl; else if ($use_ssl) { - raise_error(array('code' => 403, 'type' => 'imap', 'file' => __FILE__, - 'message' => 'Open SSL not available;'), TRUE, FALSE); + raise_error(array('code' => 403, 'type' => 'imap', + 'file' => __FILE__, 'line' => __LINE__, + 'message' => "Open SSL not available"), TRUE, FALSE); $port = 143; } @@ -136,9 +137,9 @@ class rcube_imap else if (!$this->conn && $GLOBALS['iil_error']) { $this->error_code = $GLOBALS['iil_errornum']; - raise_error(array('code' => 403, - 'type' => 'imap', - 'message' => $GLOBALS['iil_error']), TRUE, FALSE); + raise_error(array('code' => 403, 'type' => 'imap', + 'file' => __FILE__, 'line' => __LINE__, + 'message' => $GLOBALS['iil_error']), TRUE, FALSE); } // get server properties |