dg9vh / MMDVMHost-Dashboard

Dashboard for MMDVMHost (by G4KLX)
Creative Commons Zero v1.0 Universal
57 stars 45 forks source link

Error initializing YSF Infos if disabled #32

Closed phl0 closed 7 years ago

phl0 commented 7 years ago

Even if YSFGateway is not enabled the dashboard tries to read the YSF configs and logs. That results in an error message in the logs of the web server:

--- %< --- 2016-07-19 12:01:24: (mod_fastcgi.c.2695) FastCGI-stderr: PHP Warning: fopen(/etc/YSFGateway//YSFGateway.ini): failed to open stream: No such file or directory in /var/www/include/functions.php on line 37 2016-07-19 12:01:24: (mod_fastcgi.c.2695) FastCGI-stderr: PHP Warning: fopen(/var/log/YSFGateway/YSFGateway-2016-07-19.log): failed to open stream: No such file or directory in /var/www/include/functions.php on line 114 --- %< ---

So I created PR #31 to only initialize the YSF Info if the Gateway is enabled. That should save from useless error messages :)

dg9vh commented 7 years ago

merged :-)