File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 57
57
// ------------------------------------------------------------
58
58
// Check the CVS directory
59
59
log_setup ("Checking CVS directory... " );
60
- if ( ! file_exists ("$ i_path/db " ) ) {
60
+ if ( file_exists ("$ i_path/db " ) === FALSE ) {
61
61
printf ("WARNING: Path to cvs files is missing. \n" );
62
62
printf ("Restore the CVS directory to it's default location of $ i_path/db? \n" );
63
63
73
73
$ restore_res = exec ("cvs -d $ i_path/db/ init " );
74
74
echo (!empty ($ restore_res )) ? "CVS init... $ restore_res " : NULL ;
75
75
76
- if (! mkdir ("$ i_path/db/CVS " )) {
76
+ if (mkdir ("$ i_path/db/CVS " ) === FALSE ) {
77
77
printf ("ERROR: CVS restore aborted, could not create $ i_path/db/CVS. \n\n" );
78
78
exit (1 );
79
79
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ class IRRQuery {
106
106
$ this ->lastcommand = rtrim ($ output );
107
107
$ count = 0 ;
108
108
// Attempt to send the command
109
- $ r = fwrite ($ this ->fp , $ output );
109
+ $ r = @ fwrite ($ this ->fp , $ output );
110
110
111
111
while ($ r == FALSE && $ count < 3 ) {
112
112
/*
@@ -121,11 +121,11 @@ class IRRQuery {
121
121
sleep (1 );
122
122
$ this ->connect ($ this ->host , $ this ->port );
123
123
$ count += 1 ;
124
- $ r = fwrite ($ this ->fp , $ output );
124
+ $ r = @ fwrite ($ this ->fp , $ output );
125
125
}
126
126
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 ... " );
129
129
return FALSE ;
130
130
}
131
131
You can’t perform that action at this time.
0 commit comments