projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Item Tax Types: fixed inactive item tax types display switching.
[fa-stable.git]
/
reporting
/
includes
/
printer_class.inc
diff --git
a/reporting/includes/printer_class.inc
b/reporting/includes/printer_class.inc
index 1b5a14e31d5757ecb6cb888cdb4bb12f6e747218..e2de66576c7ff0c0588add33806f7c3cc66aa529 100644
(file)
--- a/
reporting/includes/printer_class.inc
+++ b/
reporting/includes/printer_class.inc
@@
-34,9
+34,9
@@
class remote_printer {
// if($ret) return $ret;
//Open a new connection to send the control file and data.
// if($ret) return $ret;
//Open a new connection to send the control file and data.
- $stream = fsockopen("tcp://".$this->host, $this->port, $errNo, $errStr, $this->timeout);
+ $stream =
@
fsockopen("tcp://".$this->host, $this->port, $errNo, $errStr, $this->timeout);
if(!$stream){
if(!$stream){
- return _('Cannot open connection to printer');
+ return _('Cannot open connection to printer')
.":<br>$errStr"
;
}
if (!isset($_SESSION['_print_job'])) {
$_SESSION['print_job'] = 0;
}
if (!isset($_SESSION['_print_job'])) {
$_SESSION['print_job'] = 0;
@@
-95,9
+95,9
@@
class remote_printer {
// Print all waiting jobs on remote printer queue.
//
function flush_queue($queue){
// Print all waiting jobs on remote printer queue.
//
function flush_queue($queue){
- $stream = fsockopen("tcp://".$this->host, $this->port,$errNo, $errStr, $this->timeout);
+ $stream =
@
fsockopen("tcp://".$this->host, $this->port,$errNo, $errStr, $this->timeout);
if (!$stream){
if (!$stream){
- return _('Cannot flush printing queue');
+ return _('Cannot flush printing queue')
.":<br>$errStr"
;
// .':<br>' . $errNo." (".$errStr.")"; return 0 (success) even on failure
} else {
//Print any waiting jobs
// .':<br>' . $errNo." (".$errStr.")"; return 0 (success) even on failure
} else {
//Print any waiting jobs
@@
-111,4
+111,3
@@
class remote_printer {
}
}
-?>