File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ protected static function getStatus( StatusModel &$model ) {
5757 $ utc = new DateTimeZone ( 'Etc/UTC ' );
5858
5959 $ status ->healthcheck = $ healthcheck ;
60+ $ status ->is_browser = Common::isBrowser (getenv ( 'HTTP_USER_AGENT ' ));
6061 $ status ->remote_address = getenv ( 'REMOTE_ADDR ' );
6162 $ status ->remote_geoinfo = GeoIP::get ( $ status ->remote_address );
6263 $ status ->remote_user_agent = getenv ( 'HTTP_USER_AGENT ' );
@@ -66,7 +67,7 @@ protected static function getStatus( StatusModel &$model ) {
6667 $ model ->status = $ status ;
6768
6869 foreach ( $ healthcheck as $ key => $ val ) {
69- if (is_bool ($ val ) && !$ val ) {
70+ if ( is_bool ( $ val ) && !$ val ) {
7071 // let the controller know that we're unhealthy.
7172 return false ;
7273 }
You can’t perform that action at this time.
0 commit comments