fix an error when using sqlite

This commit is contained in:
Mitan Omar
2019-06-29 16:55:10 +02:00
committed by GitHub
parent 992c1df5f2
commit 4ab6f5b83d

View File

@@ -129,7 +129,7 @@ if (! is_bot() && ! isset($_SESSION))
//no enough data
if (empty($dbname) || empty($dbuser))
if ((empty($dbname) || empty($dbuser)) && ($dbtype !== 'sqlite'))
{
header('Location: ./install/index.php');
@@ -399,7 +399,8 @@ register_shutdown_function(function() {
session_write_close();
$err = error_get_last();
if(is_array($err) && ! empty($err['type']) && in_array($err['type'], [E_ERROR, E_PARSE]))
if (is_array($err) && ! empty($err['type']) && in_array($err['type'], [E_ERROR, E_PARSE]))
{
kleeja_log('[FATAL] ' . basename($err['file']) . ':' . $err['line'] . ' ' . $err['message']);
}