Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix generic_includes.php returning error "Undefined variable in /var/…
…www/loris/tools/generic_includes.php on line 28" - 26 branch (#9317) This fixes the script generic_includes.php that calls the $DB variable before it is defined when calling LorisInstance. Without this fix, anything calling generic_includes.php will trigger the following error: ``` Undefined variable in /var/www/loris/tools/generic_includes.php on line 28 PHP Fatal error: Uncaught TypeError: LORIS\\LorisInstance::__construct(): Argument #1 ($db) must be of type Database, null given, called in /var/www/loris/tools/generic_includes.php on line 27 ```
- Loading branch information