Skip to content

Commit e06ed79

Browse files
committed
*echo on die
1 parent c29b7e4 commit e06ed79

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

classes/IMAP.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ public function parseMessages($emails, $limit = 0, $path = FALSE, $leave_unseen
369369
public static function _error_log($str, $err, $type = 0, $dest = NULL)
370370
{
371371
$err = is_array($err) ? var_export($err, 1) : $err;
372-
self::$echo_on = TRUE;
373372

374373
self::_echo('ERROR: ' . $str . ': ' . $err);
375374

@@ -378,7 +377,7 @@ public static function _error_log($str, $err, $type = 0, $dest = NULL)
378377
error_log($error_log_str, self::$log_type, self::$log_dest);
379378

380379
if(self::$die_on_error)
381-
die();
380+
die("\r\n(!) ERROR: $str: $err\r\n");
382381
}
383382

384383
/**

0 commit comments

Comments
 (0)