We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 462ba38 commit 640c9cfCopy full SHA for 640c9cf
interface/lib/app.inc.php
@@ -214,8 +214,10 @@ public function log($msg, $priority = 0) {
214
215
public function auth_log($msg) {
216
$authlog_handle = fopen($this->_conf['ispconfig_log_dir'].'/auth.log', 'a');
217
- fwrite($authlog_handle, $msg . PHP_EOL);
218
- fclose($authlog_handle);
+ if($authlog_handle) {
+ fwrite($authlog_handle, $msg . PHP_EOL);
219
+ fclose($authlog_handle);
220
+ }
221
}
222
223
/** Priority values are: 0 = DEBUG, 1 = WARNING, 2 = ERROR */
0 commit comments