Skip to content

Commit 3f84ad6

Browse files
committed
Hotfix
1 parent 62549da commit 3f84ad6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require_once("jate.php");
33

4-
//CLASSI
4+
//CLASSES
55
$connection = new Connection(
66
$_GLOBAL["config"]["connection"]["server"],
77
$_GLOBAL["config"]["connection"]["database"],

jate/function/query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function c_query( $_q, $_err ) {
1919
var_dump($connection->database->errorInfo());
2020
exit(0);
2121
}
22-
return $query->fetchAll();
22+
return $query->fetchAll(PDO::FETCH_ASSOC);
2323
}
2424
function c_insert( $_q, $_err ) {
2525
global $connection;
@@ -28,5 +28,5 @@ function c_insert( $_q, $_err ) {
2828
$result = $query->execute();
2929
return $result;
3030
}
31-
31+
3232
?>

0 commit comments

Comments
 (0)