further Davidson CI testing
This commit is contained in:
@@ -5,11 +5,13 @@ start_app_session();
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$pdo = getDbConnection();
|
||||
enforce_session_version($pdo);
|
||||
|
||||
$userId = $_SESSION['user_id'] ?? null;
|
||||
$result = false;
|
||||
|
||||
if ($userId !== null) {
|
||||
$pdo = getDbConnection();
|
||||
$tableExists = $pdo->query("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'transactions'")->fetch();
|
||||
|
||||
if ($tableExists) {
|
||||
|
||||
Reference in New Issue
Block a user