Skip to content

Commit

Permalink
Bug Fix: JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
astianmuchui committed May 26, 2024
1 parent 4c7734c commit 2744098
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 7 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified composer.json
100644 → 100755
Empty file.
Empty file modified composer.lock
100644 → 100755
Empty file.
Empty file modified home/img/Hexagon.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified home/img/carbon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified home/img/carbon1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified home/img/carbon2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified home/img/carbon3.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified home/index.html
100644 → 100755
Empty file.
Empty file modified home/js/fa.js
100644 → 100755
Empty file.
Empty file modified home/styles/_root.scss
100644 → 100755
Empty file.
Empty file modified home/styles/style.css
100644 → 100755
Empty file.
Empty file modified home/styles/style.scss
100644 → 100755
Empty file.
Empty file modified index.php
100644 → 100755
Empty file.
9 changes: 2 additions & 7 deletions src/Model/Model.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public static function All(mixed $table, iterable $where=null, iterable $where_l
$stmt = self::$connection->query($sql);
$stmt->execute();

if ($json = true)
if ($json == true)
{
return json_encode($stmt->fetchAll());
}
Expand All @@ -281,7 +281,7 @@ public static function All(mixed $table, iterable $where=null, iterable $where_l
* @return array or object
*/

public function Select(mixed $table, array $rows,mixed $order_by="", mixed $order, mixed $where=null, mixed $where_like=null, int $limit=null): array | object
public function Select(mixed $table, array $rows, mixed $order, mixed $where=null, mixed $where_like=null, int $limit=null,mixed $order_by=""): array | object
{

if ($where == null && $where_like == null)
Expand Down Expand Up @@ -445,8 +445,3 @@ public static function Disconnect(): void
self::$Connected = false;
}
}




?>
Empty file modified src/Schema/Schema.php
100644 → 100755
Empty file.

0 comments on commit 2744098

Please sign in to comment.