Skip to content

Commit df9f0f2

Browse files
committed
Minor cleanup
1 parent b99f5ab commit df9f0f2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

configure.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
// ------------------------------------------------------------
5858
// Check the CVS directory
5959
log_setup("Checking CVS directory...");
60-
if ( !file_exists("$i_path/db") ) {
60+
if ( file_exists("$i_path/db") === FALSE ) {
6161
printf("WARNING: Path to cvs files is missing.\n");
6262
printf("Restore the CVS directory to it's default location of $i_path/db?\n");
6363

@@ -73,7 +73,7 @@
7373
$restore_res = exec("cvs -d $i_path/db/ init");
7474
echo (!empty($restore_res)) ? "CVS init...$restore_res" : NULL;
7575

76-
if (!mkdir("$i_path/db/CVS")) {
76+
if (mkdir("$i_path/db/CVS") === FALSE) {
7777
printf("ERROR: CVS restore aborted, could not create $i_path/db/CVS.\n\n");
7878
exit(1);
7979

inc/irrquery.inc

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class IRRQuery {
106106
$this->lastcommand = rtrim($output);
107107
$count = 0;
108108
// Attempt to send the command
109-
$r = fwrite($this->fp, $output);
109+
$r = @fwrite($this->fp, $output);
110110

111111
while ($r == FALSE && $count < 3) {
112112
/*
@@ -121,11 +121,11 @@ class IRRQuery {
121121
sleep(1);
122122
$this->connect($this->host, $this->port);
123123
$count += 1;
124-
$r = fwrite($this->fp, $output);
124+
$r = @fwrite($this->fp, $output);
125125
}
126126

127-
if ($r == FALSE) {
128-
status(STATUS_ERROR, "IRR Query - Error on write. Re-connecting...");
127+
if ($r === FALSE) {
128+
status(STATUS_ERROR, "IRR Query - Error on write. Re-connect issue...");
129129
return FALSE;
130130
}
131131

0 commit comments

Comments
 (0)