Browse Source

add check for has db on error handler

CauseFX 4 năm trước cách đây
mục cha
commit
782d2a8c66
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      api/classes/organizr.class.php

+ 1 - 1
api/classes/organizr.class.php

@@ -864,7 +864,7 @@ class Organizr
 				$log = true;
 			}
 		}
-		if ($log) {
+		if ($log && $this->hasDB()) {
 			$this->setLoggerChannel('Server Error')->warning('PHP Error', $error);
 		}
 	}